Skip to:
Content
Pages
Categories
Search
Top
Bottom

remove “friends” tab from user profile


  • meganme517
    Participant

    @meganme517

    I got rid of the profile tab with this:

    function bphelp_remove_activity_from_profile(){
    bp_core_remove_nav_item(‘activity’);
    }
    add_action(‘bp_activity_setup_nav’,’bphelp_remove_activity_from_profile’);

    I can’t figure out how to remove friends and messages. I have tried this which doesn’t work:

    function bphelp_remove_friends_nav() {
    bp_core_remove_nav_item( bp_friends_slug() );
    }
    add_action( ‘bp_setup_nav’, ‘bphelp_remove_friends_nav’ );

    Any suggestions?

Viewing 1 replies (of 1 total)

  • meganme517
    Participant

    @meganme517

    I just turned off friend connections in the settings, I don’t want it enabled and this was much easier.

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