Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I hide ‘Mentions’, ‘Favorite’ tabs under the Activity


  • clancel
    Participant

    @clancel

    Hi. Is it possible to hide the Personal, Mentions, Favorite default tabs under the Activity tab? I do wish the show the activity so I do not wish the disable the Activity setting, but I would like to be able to hide the others like Mentions and Favorite. Let me know if this is possible. I look forward to your response.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Varun Dubey
    Participant

    @vapvarun

    @clancel you can try following to remove sub tabs

    
    function bp_remove_sub_tabs() {
        if ( ! bp_is_user() ) {
            return;
        }
        bp_core_remove_subnav_item( 'activity', 'mentions' );
    	 bp_core_remove_subnav_item( 'activity', 'favorites' );
    }
    add_action( 'bp_actions', 'bp_remove_sub_tabs' );

    clancel
    Participant

    @clancel

    Thank you for this code. It’s working now. I would also like to remove the ‘Home’ tab as well. Do you know the code that I can use to remove the ‘Home’ tab?

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