This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 14th, 2010  |  syntax: None  |  size: 0.22 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data