Created
October 14, 2012 11:36
-
-
Save CodeNegar/3888311 to your computer and use it in GitHub Desktop.
PHP: Wordpress change logout redirect url
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
<?php | |
add_filter( 'logout_url', 'custom_logout_url' ); | |
function custom_logout_url( $default ) | |
{ | |
return add_query_arg('redirect_to', get_bloginfo('url'),$default); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment