Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save guilhermealveslopes/c5e0a6e4d49120645b66484851434408 to your computer and use it in GitHub Desktop.
Save guilhermealveslopes/c5e0a6e4d49120645b66484851434408 to your computer and use it in GitHub Desktop.
Redirect WordPress Logout to Home Page
//* 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