We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
REST_REQUEST
plugins_loaded
The plugin runs the following on the plugins_loaded hook to determine if the site is making a rest request.
// Don't redirect REST API requests if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { return; }
Unfortunately, REST_REQUEST is only defined after the plugins have loaded so after the code above is passed.
Moving the redirect to the send_headers action works around this.
send_headers
The text was updated successfully, but these errors were encountered:
Load 'redirect' module on 'send_headers' instead of 'plugins_loaded'.
c88e750
Fixes an issue with checking for REST API requests since 'plugins_loaded' runs before the REST API is loaded. See humanmade/Mercator-Redirect#11
No branches or pull requests
The plugin runs the following on the
plugins_loaded
hook to determine if the site is making a rest request.Unfortunately,
REST_REQUEST
is only defined after the plugins have loaded so after the code above is passed.Moving the redirect to the
send_headers
action works around this.The text was updated successfully, but these errors were encountered: