Created
September 9, 2015 14:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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