Skip to content

Instantly share code, notes, and snippets.

@ideadude
Created June 29, 2020 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ideadude/2eb3d2e60a44b2f62a5d778ee4d5d6e9 to your computer and use it in GitHub Desktop.
Save ideadude/2eb3d2e60a44b2f62a5d778ee4d5d6e9 to your computer and use it in GitHub Desktop.
Make sure to add the wpe-login parameter to the lostpassword URL.
<?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