Redirect users to a custom page when they log out.
add_action('wp_logout', 'codebykp_custom_logout_redirect');
function codebykp_custom_logout_redirect() {
wp_redirect(home_url('/goodbye'));
exit();
}
Redirect users to a custom page when they log out.
add_action('wp_logout', 'codebykp_custom_logout_redirect');
function codebykp_custom_logout_redirect() {
wp_redirect(home_url('/goodbye'));
exit();
}