Created
September 20, 2018 11:56
-
-
Save robertuniqid/7710e4a6129c75a9ecd1c4a631c133de to your computer and use it in GitHub Desktop.
Redirect To Homepage / Custom Link After Password Reset
This file contains hidden or 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 | |
function my_lost_password_redirect() { | |
wp_redirect( 'https://growlearnteach.com' ); | |
exit; | |
} | |
add_action('after_password_reset', 'my_lost_password_redirect'); |
This file contains hidden or 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 | |
function my_lost_password_redirect() { | |
wp_redirect( home_url() ); | |
exit; | |
} | |
add_action('after_password_reset', 'my_lost_password_redirect'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment