#3654 closed defect (bug) (no action required)
remove_action 'bp_adminbar_notifications_menu' not working
| Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
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' );