Posted on August 8, 2013 , Last Modified on: August 8, 2013
Remove Friendship Button on User Profile(removes add/remove/Cancel Friendship button from user profile)
//remove friendship button oon Single User profile
add_action('bp_init','bp_custom_remove_friendship_btn_on_profile');
function bp_custom_remove_friendship_btn_on_profile(){
if ( has_action( 'bp_member_header_actions', 'bp_add_friend_button' ) ) {
remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );
}
}
#buddypress #friends #bp-hacks