Skip to content

Instantly share code, notes, and snippets.

@robertuniqid
Created September 20, 2018 11:56
Show Gist options
  • Save robertuniqid/7710e4a6129c75a9ecd1c4a631c133de to your computer and use it in GitHub Desktop.
Save robertuniqid/7710e4a6129c75a9ecd1c4a631c133de to your computer and use it in GitHub Desktop.
Redirect To Homepage / Custom Link After Password Reset
<?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