Keep updated with the latest Tutorials and Snippets
Subscribe
X

Paulund

  • Tutorials
  • Snippets
  • Resources
  • Archives
  • About
  • Contact

Remove Lost Password Link On WordPress Login Page

Updated: February 26th, 2013 in Wordpress

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' );

Share The Wealth

Tweet This +1 This Like This

Keep updated with the latest tutorials and snippets.

Join me on Twitter | G+ | Facebook

Learn Web Design, Coding & More. No Risk. No Contracts. Learn More
« Stop Search Engines From Indexing Search ResultsCreate Better SEO By Removing Stop Words »
Comment

Remove Lost Password Link On Wordpress Login Page bit.ly/y6HbJn

— Paulund (@paulund_) February 25, 2013

Paulund, Get the Latest Web Deals