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

Add option to disable functionality unless query string is present #32

Open
westonruter opened this issue Sep 12, 2013 · 0 comments
Open

Comments

@westonruter
Copy link
Contributor

For debugging purposes, users often post to the forum with bug reports, but they have to disable the plugin so that their site is no longer broken. They should be able to leave the plugin activated, but enable an option which disables the plugin on the frontend unless a manually-supplied query string is provided, e.g. '?dependency-minification-activated=1'

This could also be done in code via a mu-plugin, for example:

add_filter( 'dependency_minification_disabled', 
    isset( $_GET['dependency_minification_enabled'] ) 
    ? '__return_false' 
    : '__return_true' 
);

Relates to #27 /cc @shadyvb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant