[buddypress-trac] [BuddyPress] #4751: remove action bp_member_header_actions priority wonky
buddypress-trac
noreply at wordpress.org
Thu Jan 3 04:09:10 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 | Keywords: dev-feedback
--------------------------+-----------------------------
in functions php we have this:
{{{
add_action( 'bp_member_header_actions',
'bp_send_public_message_button', 20 );
}}}
to remove:
{{{
remove_action( 'bp_member_header_actions',
'bp_send_public_message_button', 20 );
}}}
This works great but the add friends button is set at priority 5 and if
you use this:
{{{
remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );
}}}
It doesn't remove the action.
only if the integer is above 10 will it remove the action.
if I change the add action in functions to:
{{{
add_action( 'bp_member_header_actions', 'bp_add_friend_button', 11 );
}}}
I can then remove it with:
{{{
remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 11
);
}}}
not sure whats blocking priority 1-10
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4751>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list