WordPress Remove lost password link

You want to remove lost password link from WordPress login page.

To do this follow the following process.

Step One: Open your WordPress web site as an administrator.

Step Two: Then go to the WordPress Dashboard.

Step Three: Then move your mouse pointer and hold on Appearance menu.

Step Four: Then move and click on the Editor sub menu.

Step Five: Then Select theme to edit.

Step Six: Click on the functions.php page (This is your current theme page)

Step Seven: Then place the following code into functions.php page.


The code is:

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

Leave a Reply