Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

Last modified 8 years ago

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

remove_action 'bp_adminbar_notifications_menu' not working

Reported by: wedeem's profile 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
13 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
8 years ago

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