Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check_if_create_group_limit()
- if( bp_is_group_create() ) {
- if ( current_user_can( 'dummy_role' ) ) { //only admins and dummy users can create groups
- } else {
- wp_redirect( get_option('siteurl') . '/example.php');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement