Redirect After Logout
Redirect users to a custom URL after logout.
<?php
function custom_logout_redirect() {
wp_redirect(home_url('/goodbye')); // Change URL here
exit;
}
add_action('wp_logout', 'custom_logout_redirect');
Redirect users to a custom URL after logout.
<?php
function custom_logout_redirect() {
wp_redirect(home_url('/goodbye')); // Change URL here
exit;
}
add_action('wp_logout', 'custom_logout_redirect');
Post Comment