Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Remove View Tab from Member Profile Page

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

  • danbp
    Moderator

    @danbp

    Try this (bp-custom.php or child-theme functions.php)

    function lafa_remove_submenu_item() {
    	global $bp;
    
    	unset($bp->bp_options_nav['profile']['public']);
    }
    add_action('bp_setup_nav', 'lafa_remove_submenu_item', 201);

    lafa33
    Participant

    @lafa33

    Sweet! Thank you danbp! Added the above code to the bp-custom.php file and it work like a charm!


    Tafmakura
    Participant

    @tafmakura

    @danbp How do I remove the profile view page all together ?


    danbp
    Moderator

    @danbp

    @tafmakura,

    try

    function bpfr_hide_top_nav() {	
    if( bp_is_active('xprofile' ) )	
    	bp_core_remove_nav_item( 'profile' );
    }
    add_action( 'bp_ready', 'bpfr_hide_top_nav' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Remove View Tab from Member Profile Page’ is closed to new replies.
Skip to toolbar