The Plugin Mess with wp_logout(); incorrect hooking
-
the Plugin after OTP, redirects to Account page, ignoring the hook woocommerce_registration_redirect
function wc_custom_registration_redirect() {
wp_logout();
wp_destroy_current_session();
return home_url(‘/’);
}
add_action(‘woocommerce_registration_redirect’, ‘wc_custom_registration_redirect’, 99);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘The Plugin Mess with wp_logout(); incorrect hooking’ is closed to new replies.