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,
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.
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,