Forked from bwhli/Redirect WordPress Logout to Home Page
Last active
April 11, 2017 13:49
-
-
Save marcosnakamine/3241b5a81dc001feb3a7bd3e5a410dbe to your computer and use it in GitHub Desktop.
WordPress - Change logout redirect
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
<?php | |
//* 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