Wordpress: Rediriger les utilisateurs d"connectés
PHP
add_action('wp_logout','auto_redirect_after_logout');
function auto_redirect_after_logout(){
wp_redirect( home_url() );
exit();
}
1
2
3
4
5
add_action('wp_logout','auto_redirect_after_logout');
function auto_redirect_after_logout(){
wp_redirect( home_url() );
exit();
}
-
-
https://shaarli.youm.org/?PU1yAg