Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created September 9, 2015 14:47
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 joshfeck/4b885d742a3d048b49b5 to your computer and use it in GitHub Desktop.
Save joshfeck/4b885d742a3d048b49b5 to your computer and use it in GitHub Desktop.
Adds a forgot password link to the registration step log in form. Requires Event Espresso 4 and WP Users integration add-on. From http://eventespresso.com/topic/translation-not-working-3/#post-170249
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
// add wp forget password to WP user log in reg step
//
add_action( 'AHEE__Form_Section_Layout__ee_spco_wpuser_login_reg_step_form', 'jf_ee_add_the_password_link' );
function jf_ee_add_the_password_link() {
add_action( 'AHEE__before_spco_whats_next_buttons', 'jf_ee_add_forgot_password_link' );
}
function jf_ee_add_forgot_password_link() {
?>
<a href="<?php echo wp_lostpassword_url(); ?>" title="Lost Password">Lost your password?</a>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment