Forked from bwhli/Redirect WordPress Logout to Home Page
Created
March 27, 2017 21:49
-
-
Save guilhermealveslopes/c5e0a6e4d49120645b66484851434408 to your computer and use it in GitHub Desktop.
Redirect WordPress Logout to Home Page
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
//* Redirect WordPress Logout to Home Page | |
add_action('wp_logout',create_function('','wp_redirect(home_url());exit();')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment