[buddypress-trac] [BuddyPress] #4751: remove action bp_member_header_actions priority wonky

buddypress-trac noreply at wordpress.org
Thu Jan 3 18:37:18 UTC 2013


#4751: remove action bp_member_header_actions priority wonky
--------------------------+------------------------------
 Reporter:  modemlooper   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Theme         |     Version:  1.7
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+------------------------------

Comment (by modemlooper):

 more info

 I figured that if I wrap remove action in a function I can get it to
 remove by using a 0 priority in the function. The other buttons do not
 require this.


 {{{
 function remove_add_friend() {

          remove_action( 'bp_member_header_actions',
 'bp_add_friend_button', 5 );
 }
 add_action( 'bp_member_header_actions', 'remove_add_friend', 0 );
 }}}

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


More information about the buddypress-trac mailing list