Skip to:
Content

BuddyPress.org

Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#3654 closed defect (bug) (no action required)

remove_action 'bp_adminbar_notifications_menu' not working

Reported by: wedeem Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5
Component: Templates Keywords:
Cc:

Description

I tried:

remove_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );

In a custom plugin and in bp-customs though I can't remove it?

I am able to remove all the others..

Change History (2)

#1 @boonebgorges
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

You're probably doing it too soon. It works if you hook the remove_action() to bp_init, eg

function bbg_remove_notifications_menu() {
  remove_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );
}
add_action( 'bp_init', 'bbg_remove_notifications_menu' );

#2 @DJPaul
4 years ago

  • Component changed from Appearance - Template Parts to Templates
Note: See TracTickets for help on using tickets.