1// on your theme -> functions.php -->
2add_action('wp_logout','auto_redirect_after_logout');
3function auto_redirect_after_logout(){
4 wp_safe_redirect( home_url() );
5 exit;
6}
1<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>
2
1add_action('wp_logout','auto_redirect_after_logout');
2
3function auto_redirect_after_logout(){
4 wp_safe_redirect( home_url() );
5 exit;
6}