Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Remove all buddypress feeds
- */
- function cherrypick_custom_bp_remove_feeds()
- {
- remove_action('bp_actions', 'bp_activity_action_sitewide_feed');
- remove_action('bp_actions', 'bp_activity_action_personal_feed');
- remove_action('bp_actions', 'bp_activity_action_friends_feed');
- remove_action('bp_actions', 'bp_activity_action_my_groups_feed');
- remove_action('bp_actions', 'bp_activity_action_mentions_feed');
- remove_action('bp_actions', 'bp_activity_action_favorites_feed');
- remove_action('bp_actions', 'groups_action_group_feed');
- }
- add_action('init', 'cherrypick_custom_bp_remove_feeds');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement