Changing default tab in the settings menu
-
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?
- The topic ‘Changing default tab in the settings menu’ is closed to new replies.