[buddypress-trac] [BuddyPress] #3654: remove_action 'bp_adminbar_notifications_menu' not working

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Oct 4 12:59:35 UTC 2011


#3654: remove_action 'bp_adminbar_notifications_menu' not working
--------------------+----------------------
 Reporter:  wedeem  |       Owner:
     Type:  defect  |      Status:  closed
 Priority:  normal  |   Milestone:
Component:  Theme   |     Version:  1.5
 Severity:  normal  |  Resolution:  invalid
 Keywords:          |
--------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 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' );
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3654#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list