Last active
October 3, 2018 22:07
-
-
Save codeiscode-dev/5c00cc693f97496fe9b9f73d35825da8 to your computer and use it in GitHub Desktop.
Redirect upon Login / Logout
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
add_action('wp_logout','auto_redirect_external_after_logout'); | |
function auto_redirect_external_after_logout(){ | |
wp_redirect( 'https://www.growlearnteach.com' ); | |
exit(); | |
} |
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
add_action('wp_logout','auto_redirect_after_logout'); | |
function auto_redirect_after_logout(){ | |
wp_redirect( home_url() ); | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment