Remove Lost Password Link On WordPress Login Page

In a previous post you would of learnt some of the best ways you can secure your wordpress blog.

On your WordPress login page by default has a link that requests you to reset your password.

Wordpress reset password

Obviously having a link to reset your password open to the public isn't very secure. If someone has hacked your email account they will be able to get your WordPress password and shut down your site completely.

Below is a WordPress snippet that allows you to remove the lost your password text from the login screen, just add the following in your functions.php file.

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

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *