Advertisement
Guest User

in_array member ID whitelist for group digest/subscription

a guest
May 14th, 2010
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // in file bp-activity-subscription.php
  2. $allowed_users = array(1, 2);
  3. // $this_user was or needs to be $this_user = $bp->loggedin_user->id  - gloabal $bp is null though
  4. $this_user = '1'; // to test with hardcoded value
  5. if(in_array("$this_user", $allowed_users)):
  6. add_action( 'plugins_loaded', 'activitysub_load_buddypress', 1 );
  7. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement