Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing default tab in the settings menu


  • Roger Coathup
    Participant

    @rogercoathup

    Can’t get bp_core_new_nav_default() function to work for the settings menu. Any thoughts would be appreciated.



    I’ve tried using the bp_core_new_nav_default() function to change the default tab in settings to notifications, but it doesn’t appear to have any effect on the menu:

    function settings_default_subnav() {
    global $bp;

    bp_core_new_nav_default ( array( ‘subnav_slug’ => ‘notifications’, ‘parent_slug’ => $bp->settings->slug, ‘screen_function’ => ‘bp_core_screen_notification_settings’ ) );
    }

    add_action( ‘bp_setup_nav’, ‘settings_default_subnav’);

    Any thoughts on why this wouldn’t work?

    Notes:
    We tried this with various priority settings, and in both bp-custom.php and functions.php – but it just seems to be ignored.
    Is bp_setup_nav the right action to hook onto?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing default tab in the settings menu’ is closed to new replies.
Skip to toolbar