Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* --------------------------------------------------------------------------
- Add Password Reset Tab to Account
- -------------------------------------------------------------------------- */
- add_filter( 'wpuf_account_sections', 'wpuf_my_page' );
- function wpuf_my_page( $sections ) {
- $sections = array_merge( $sections, array( array( 'slug' => 'update-password', 'label' => 'Reset Password' ) ) );
- return $sections;
- }
- add_action( 'wpuf_account_content_update-password', 'wpuf_my_page_section', 10, 2 );
- function wpuf_my_page_section( $sections, $current_section ) {
- wpuf_load_template(
- 'reset-pass-form.php',
- array( 'sections' => $sections, 'current_section' => $current_section )
- );
- }
Add Comment
Please, Sign In to add comment