Created
June 29, 2020 20:40
-
-
Save ideadude/2eb3d2e60a44b2f62a5d778ee4d5d6e9 to your computer and use it in GitHub Desktop.
Make sure to add the wpe-login parameter to the lostpassword URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Make sure to add the wpe-login parameter to the lostpassword URL. | |
*/ | |
function my_fix_wpelogin( $url ) { | |
$url = add_query_arg( 'wpe-login', true, $url ); | |
return $url; | |
} | |
add_filter( 'lostpassword_url', 'my_fix_wpelogin' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment