SHARE
TWEET

Remove all buddypress feeds

estepix Mar 15th, 2016 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Remove all buddypress feeds
  3.  */
  4. function cherrypick_custom_bp_remove_feeds()
  5. {
  6.     remove_action('bp_actions', 'bp_activity_action_sitewide_feed');
  7.     remove_action('bp_actions', 'bp_activity_action_personal_feed');
  8.     remove_action('bp_actions', 'bp_activity_action_friends_feed');
  9.     remove_action('bp_actions', 'bp_activity_action_my_groups_feed');
  10.     remove_action('bp_actions', 'bp_activity_action_mentions_feed');
  11.     remove_action('bp_actions', 'bp_activity_action_favorites_feed');
  12.     remove_action('bp_actions', 'groups_action_group_feed');
  13. }
  14. add_action('init', 'cherrypick_custom_bp_remove_feeds');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top