sbrajesh

find if a user is admin of any group

Nov 2nd, 2011
110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $user_groups=BP_Groups_Member::get_is_admin_of(bp_loggedin_user_id());
  2. if($user_groups['total']>0)
  3. //do something//the users owns a couple of groups for sure
  4.  
RAW Paste Data