Created
March 14, 2019 00:52
-
-
Save KaineLabs/6e79389e5e87cc495e4b2a57dbfd394d to your computer and use it in GitHub Desktop.
Force Creating The Profile Edit 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 | |
// Force Creating The Profile Edit Page | |
function yzc_force_creating_profile_edit_page() { | |
bp_core_new_subnav_item( array( | |
'slug' => 'edit', | |
'name' => __( 'Profile Settings', 'youzer' ), | |
'parent_slug' => 'profile', | |
'parent_url' => yz_get_profile_settings_url(), | |
'screen_function' => 'yz_get_profile_settings_page', | |
) | |
); | |
} | |
add_action( 'bp_actions', 'yzc_force_creating_profile_edit_page', 101 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment