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