BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 2
    John on #5230

    Excellent! Worked like a charm. Thank you so much Brajesh!

  • Participant
    Level: Initiated
    Posts: 2
    John on #5227

    Hi Brajesh, that is actually what I wound up doing and so far so good. However I have ran into an additional problem that I hope you can help me with.

    How can I now set my new tab as the default settings tab? The new tab slug is accountdetails

    I have tried using this code in functions.php but it is not working.

    function change_default_settings_tab() {

    $bp = buddypress();

    bp_core_new_nav_default(array(‘parent_slug’=>’$bp->settings->slug’, ‘subnav_slug’ => $bp->settings->slug . ‘/accountdetails’));

    }
    add_action(‘bp_setup_nav’, ‘change_default_settings_tab’, 5);