Issue
I have tried several methods but the lost-password is constantly replaced with:
wp-login?action=lostpassword
It's set in the woocommerce endpoint
I've even added the below in theme functions.php file:
add_filter( 'lostpassword_url', 'my_lostpassword_url', 10, 2 );
function my_lostpassword_url( $lostpassword_url, $redirect ) {
$redirect = '/my-account/lost-password';
return site_url( '/wp-login.php?action=lostpassword' . $redirect );
}
Purged caches yet still, anytime i click on the URL to go to the password reset page, it defaults to wp-login.php?
which doesn't work and just refreshes the My Account page.
Any help will be much appreciated
Solution
Removed this completely, reinstalled WooCommerce and added lost-password to the endpoints within WooCommerce Settings managed to overwrite wordpress settings
Answered By - JustCode
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.