• 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 in duo_wordpress.php in the method duo_start_second_factor($user, $redirect_to=NULL).

    Is there a chance this could be fixed? Duo could for example call wp_destroy_current_session() and wp_clear_auth_cookie() by themselves instead, which is what wp_logout() is doing.

  • The topic ‘Redirecting in wp_logout breaks using Duo WordPress’ is closed to new replies.