Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile default nav


  • eloyruiz
    Participant

    @eloyruiz

    Hello,
    I’m trying to remove the View subtab from the Profile tab with the next code:


    function my_setup_nav(){
    bp_core_new_nav_default( array(
    'parent_slug' => 'profile',
    'screen_function' => 'xprofile_screen_edit_profile',
    'subnav_slug' => 'edit',
    )
    );
    }
    add_action('bp_setup_nav', 'my_setup_nav', 1000);

    But when I do that and visit the user’s profile https://localhost/my-project/miembros/empleado-1/profile/ I get a 404 – Page not found.

    To clarify it a bit more, the idea is seeing the Edit subtab as default Profile subtab and remove the View subtab because the info is irrelevant.

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