Advertisement
vapvarun

Remove BuddyPress Subnav item

May 12th, 2020
1,471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. function bp_remove_mentions() {
  2.     if ( ! bp_is_user() ) {
  3.         return;
  4.     }
  5.     bp_core_remove_subnav_item( 'activity', 'mentions' );
  6. }
  7. add_action( 'bp_actions', 'bp_remove_mentions' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement