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 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.