Last active
October 25, 2016 11:35
-
-
Save bmakowski/eb660fa573408ab637c2f54779ec0254 to your computer and use it in GitHub Desktop.
WordPress redirect after 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
<?php | |
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