SHARE
TWEET

in_array member ID whitelist for group digest/subscription

a guest May 14th, 2010 52 Never
  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;
RAW Paste Data
Top