Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Action Hook: login_form_middle

Add the “Lost Password?” Link to wp_login_form() Output

If you’re using the handy wp_login_form() function to create a custom log in page, you may have noticed that you don’t get the “Lost Password?” link. Doesn’t take much to add it back:

add_action( 'login_form_middle', 'add_lost_password_link' );
function add_lost_password_link() {
	return '<a href="/wp-login.php?action=lostpassword">Lost Password?</a>';
}
Posted on April 6, 2011March 1, 2012Categories WordPress BitsTags log in14 Comments on Add the “Lost Password?” Link to wp_login_form() Output
Proudly powered by WordPress