Modifying members_header_actions
-
Hey,
I’m trying to remove
bp_add_friend_button
frombp_member_header_actions
by usingremove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );
It is not working.
While I was able to remove follow button (Buddypress Follow plugin) with the following code:
remove_action( 'bp_member_header_actions', 'bp_follow_add_profile_follow_button' );
The same code for friendship button is not working.
I have also tried the following code:
function remove_add_friend() { remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 ); } add_action( 'after_setup_theme', 'remove_add_friend', 11 );
Any solution to the problem?
Thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.