Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide the button “add friend” in the list of members


  • HDcms
    Participant

    @hdcms

    Hello,
    How to hide the button “add friend” in the list of members?
    https://screenshots.firefox.com/RkzmrYSm2wxls4a3/null

    The following code does not work on this page while running on a 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 );
       }
    }

    Regards

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar