woocommerce password reset | WordPress.org

[ad_1]

Dear @davidgimenez

We apologize for the inconvenience. To resolve this issue, please follow these steps:

  • Open your theme’s functions.php file.
  • Add the provided code snippet to the file.
  • Save the changes to the functions.php file.
  • Clear your browser cache to ensure the changes take effect.

By adding this code to your theme’s functions.php file and clearing your browser cache, the issue should be resolved.
function redirect_lost_password_page() {
if ( function_exists('tutor') ) {
$lostpassword_url = add_query_arg( 'action', 'retrieve_password', site_url( 'my-account/lost-password/' ) );
if ( ! empty( $redirect ) ) {
$lostpassword_url = add_query_arg( 'redirect_to', urlencode( $redirect ), $lostpassword_url );
}
return $lostpassword_url;
}
}
add_filter( 'lostpassword_url', 'redirect_lost_password_page', 99 );

Thank you.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer