SHARE
TWEET

Untitled

a guest Jul 14th, 2010 56 Never
  1. function check_if_create_group_limit()
  2.  
  3. if( bp_is_group_create() ) {
  4. if ( current_user_can( 'dummy_role' ) ) { //only admins and dummy users can create groups
  5. } else {
  6. wp_redirect( get_option('siteurl') . '/example.php');
  7. }
RAW Paste Data
Top