Created
May 28, 2013 06:46
-
-
Save thyforhtian/5660901 to your computer and use it in GitHub Desktop.
Wordpress: redirect to home after logout
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
| add_filter('logout_url', 'projectivemotion_logout_home', 10, 2); | |
| function projectivemotion_logout_home($logouturl, $redir) { | |
| $redir = get_option('siteurl'); | |
| return $logouturl . '&redirect_to=' . urlencode($redir); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment