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');

 

Wil jij gratis WordPress tips in je inbox ontvangen?

Wij sturen maximaal 2 e-mails per maand. Beloofd!

Voornaam
Dit veld is bedoeld voor validatiedoeleinden en moet niet worden gewijzigd.