Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter to bypass or short-circuit wp-login.php redirection #7

Closed
Mamaduka opened this issue Apr 20, 2016 · 0 comments
Closed

Filter to bypass or short-circuit wp-login.php redirection #7

Mamaduka opened this issue Apr 20, 2016 · 0 comments

Comments

@Mamaduka
Copy link
Contributor

In same case we still need to have access to wp-login.php. SSO plugin handle their redirection logic redirection when accessing default WP login URL, or maybe we want to bypass redirection for testing based on URL query args.

Example usage for later:

add_filter( 'wds_clp_redirect_login_page, function( $redirect ) {
    if ( isset( $_GET['query_arg'] ) && $_GET['query_arg'] === 'yes' ) {
        $redirect = false;
    }
return $redirect;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants