SHARE
TWEET

Untitled

a guest Mar 18th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Force Creating The Profile Edit Page
  3.  
  4. function yzc_force_creating_profile_edit_page() {
  5.     bp_core_new_subnav_item( array(
  6.         'slug' => 'edit',
  7.         'name' => __( 'Profile Settings', 'youzer' ),
  8.         'parent_slug' => 'profile',
  9.         'parent_url' => yz_get_profile_settings_url(),
  10.         'screen_function' => 'yz_get_profile_settings_page',
  11.         )
  12.     );
  13. }
  14.  
  15. add_action( 'bp_actions', 'yzc_force_creating_profile_edit_page', 101 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top