Created
July 7, 2015 04:54
-
-
Save bwhli/bb63d1330afc9c64df78 to your computer and use it in GitHub Desktop.
Redirect WordPress Logout to Home Page
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
//* Redirect WordPress Logout to Home Page | |
add_action('wp_logout',create_function('','wp_redirect(home_url());exit();')); |
Thank you, it's helpful.
Thanks! :)
Thank you so much!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just for a more common syntax...