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

Make it possible to disable the plugin using a constant or an environment variable #655

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joppuyo
Copy link

@joppuyo joppuyo commented Feb 14, 2022

Running the Seravo MU Plugin in a local development environment can cause various issues since the plugin will try to write log files into a location that might not exist in the development environment.

This PR introduces a PHP constant and an environment variable called SERAVO_PLUGIN_DISABLED which can be used to conditionally disable the plugins in environments where it's not desirable to have the plugin enabled.

This means you can add the following to your wp-config.php to disable the plugin:

define('SERAVO_PLUGIN_DISABLED', true);

You can also define the same as environment variable for the same effect

SERAVO_PLUGIN_DISABLED='true'

…ment variable

Maybe fix code style error

Fix code style try 2
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

Successfully merging this pull request may close these issues.

1 participant