change default subnav
-
I’m having the worst time trying to change the default subnav on a user’s profile page. I came across this code snippet, but it doesn’t seem to work.
function change_settings_subnav() { $args = array( 'parent_slug' => 'settings', 'screen_function' => 'bp_core_screen_notification_settings', 'subnav_slug' => 'notifications' ); bp_core_new_nav_default($args); } add_action('bp_setup_nav', 'change_settings_subnav', 5);…and the reason this won’t work according to hookr.io is:
bp_core_screen_notification_settings();
This function is no longer needed as new template files for the Settings component were introduced.I’ll be most grateful if anyone can help me!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘change default subnav’ is closed to new replies.