Redirect to custom password reset page
-
I created a custom password reset page and added the following to my function.php. I thought it would work but it doesn’t when the user clicks on the link in your email. Any suggestions?
// REDIRECT TO NEW PASSWORD RESET PAGE add_action('init','possibly_redirect'); function possibly_redirect(){ global $pagenow; if( 'https://dreamdaydjs.com/wp-login.php?action=rp' == $pagenow ) { wp_redirect('https://dreamdaydjs.com/your-profile/resetpass/'); exit(); } }
- The topic ‘Redirect to custom password reset page’ is closed to new replies.