Skip to content

Instantly share code, notes, and snippets.

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