Skip to content

Instantly share code, notes, and snippets.

@BeardedGinger
Created August 29, 2014 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeardedGinger/2612cedd4c8867d97cd1 to your computer and use it in GitHub Desktop.
Save BeardedGinger/2612cedd4c8867d97cd1 to your computer and use it in GitHub Desktop.
Add Lost password link to wp_login_form()
<?php
add_action( 'login_form_middle', 'add_lost_password_link' );
/**
* Add Lost password link to wp_login_form()
*/
function add_lost_password_link() {
$home = get_bloginfo( 'url' );
return '<a href="'.$home.'/wp-login.php?action=lostpassword">Lost Password?</a>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment