Change/Enable/Disable The “Lost Your Password?” Link/URL/Form – UPDATE
-
Hi there,
just to let you know that if you disable the “lost your password link”, this will not disable the link into the error message when the user type a wrong password.
The link will always appear and this is not something that you can change via the plugin templates.You need to disable using a WP filter:
function remove_lostpassword_text ( $text ) { if ($text == 'Lost your password?'){$text = '';} return $text; } add_filter( 'gettext', 'remove_lostpassword_text' );
If you’re using also WPML you’ll need to add some if/else code through the ICL_LANGUAGE_CODE variable for all the different languages strings.
Not really elegant, but that’s the onyl solution I’ve found right now.
- The topic ‘Change/Enable/Disable The “Lost Your Password?” Link/URL/Form – UPDATE’ is closed to new replies.