Last active
April 26, 2021 03:13
-
-
Save KaineLabs/50da8b3526bc8deffef90b0bea4e1f4c to your computer and use it in GitHub Desktop.
Set Account Settings Default Page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set Account Settings Default Page. | |
*/ | |
add_action( 'bp_template_redirect', 'yzc_set_default_page', 999 ); | |
function yzc_set_default_page() { | |
$args = array( | |
'parent_slug' => 'settings', | |
'subnav_slug' => 'account-privacy' | |
); | |
bp_core_new_nav_default( $args ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment