Skip to:
Content
Pages
Categories
Search
Top
Bottom

About default profile sub nav


  • wenkbt
    Participant

    @wenkbt

    Hi,
    I have changed the default profile sub nav as ‘my details’,

    , but the original default sub nav(‘View’) don’t show the corresponding contents as before. Is there anyway to keep ‘View’ tab?

    Looking forward to your replies. Thanks!

Viewing 1 replies (of 1 total)

  • wenkbt
    Participant

    @wenkbt

    my function.php

    function change_default_profile_sub_nav() {
        global $bp;
        bp_core_new_nav_default (
            array(
                'parent_slug'       => $bp->profile->slug,
                'subnav_slug'       => 'details',
                'screen_function'   => 'change_default_profile_sub_nav'
            )
        );
    }
    add_action( 'bp_setup_nav', 'change_default_profile_sub_nav', 20 );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar