Voeg deze code toe aan functions.php van je thema of Code Snippets. O.a. te gebruiken met BuddyPress


// add redirect on user logout always to home page
function hh_auto_redirect_after_logout(){
wp_redirect( home_url() );
exit();
}

add_action('wp_logout','hh_auto_redirect_after_logout');