Redirect to a page after "Lost Password" link is hit.
-
Hello!
I want to redirect the user to a custom page after he hits the “Lost Password” link but I don’t seem to find how, I already looked at this post but it didn’t help me:
Maybe I need more detailed instructions, I’m a newbie in wordpress… I added your code in the functions.php of my child theme:
add_filter ('wppb_login_url', 'myFunct', 10, 2); function myFunct($oldRedirect, $siteURL){ /* what you return here will be the new url, as filters have higher priority */ return '< a href = "'.$siteURL.'/myPasswordRecoveryPageURL " >Recover Pass'< / a >'; }
but I don’t know if maybe I should add the filter “wppb_login_url” to the [wppb-login] shortcode somehow, already tried using [wppb-login wppb_login_url] and it didn’t work
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redirect to a page after "Lost Password" link is hit.’ is closed to new replies.