Remove the lost your password? link

Yesterday I posted a snippet to disable the lost password feature in wordpress. This will add to that little snippet and remove the lost password text from the wordpress login page. This does not remove the link but just replaces the Lost your password? text with nothing effectively removing the link.



function remove_lostpassword_text ( $text ) {
if ($text == 'Lost your password?'){$text = '';}
return $text;
add_filter( 'gettext', 'remove_lostpassword_text' );

Leave a comment