Redirecting in wp_logout breaks using Duo WordPress
-
add_action( 'wp_logout', 'xxx_logout_redirect' ); function xxx_logout_redirect() { wp_redirect(get_site_url()); exit(); }
This will for example no longer work using Duo WordPress. This is since Duo WordPress is calling
wp_logout()
on :210 induo_wordpress.php
in the methodduo_start_second_factor($user, $redirect_to=NULL)
.Is there a chance this could be fixed? Duo could for example call
wp_destroy_current_session()
andwp_clear_auth_cookie()
by themselves instead, which is whatwp_logout()
is doing.
- The topic ‘Redirecting in wp_logout breaks using Duo WordPress’ is closed to new replies.