• Hello,

    I created my own page to change user password using the shortcode: [ultimatemember_account tab=”password”].

    But it doesn’t work. If I inform a wrong old password it doesn’t validate, and if I inform all fields correct it doesn’t change the password. And it doesn’t show any error message, it just doesn’t work.

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @rkiguti

    Did you add the shortcode in the Account page and assign that page in the UM Settings?

    Go to WP Admin > Ultimate Member > Settings > General > Pages.

    Regards,

    Thread Starter Rodrigo Kiguti

    (@rkiguti)

    Hi,

    Now, it works. The account page settings was the profile page that I was created. And after I changed the settings to my change password page it worked.

    But I have a code to redirect the user to another page when I change the password successfully. When I use this code the change password doesn’t work.

    My code:

    add_action( 'um_change_password_process_hook', 'my_change_password_process', 10, 1 );
    function my_change_password_process( $post ) {
    	header("Location: https://mydomain.com.br/mypage/");
    	die();
    }

    How can I redirect my user to another page after change password?

    Regards.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @rkiguti

    Sorry for the late response.

    You can try this code snippet:

    add_action("um_after_user_account_updated","um_011420_change_password");
    function um_011420_change_password( $user_id ){
          wp_redirect("https://mydomain.com.br/mypage/"); exit;
    }

    Feel free to re-open this thread by changing the topic status to “Not Resolved” so we can get back to you.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change password issue’ is closed to new replies.