change lost password from woocommerce to WP default

Posted in: Newspaper
Post count: 18

The forget password link from the WP log in directs to woocommerce’s “my account” but when an email or user name is put in, no one gets an email to reset the password.

But the home.com/?action=lostpassword is working. So I want to redirect form the WP’s logging “forgot password” to the ?action=lostpassword link. I’ve tried changing from woocommerce plugin from “lost-password” to ?action=lostpassword it does not work. I’ve tried chaning from FTP files woocommerce >login.php

I tried adding in
function change_lost_password_link( $LostPassURL){ $LostPassURL = home_url(‘/?action=lostpassword’); return $LostPassURL; } add_filter(‘wppb_pre_login_url_filter’,’change_lost_password_link’, 2);

In the function.pho based on an internet search. It worked once then it stopped working.

Post count: 1291

Hi,

I think that the wppb_pre_login_url_filter is from another plugin (https://wordpress.org/plugins/profile-builder/)
Unfortunately i don’t have a solution for this, you have to find another hook, look inside this list – http://docs.woothemes.com/wc-apidocs/hook-docs.html – If you don’t find anything you may have to override the template – http://docs.woothemes.com/document/template-structure/

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.