Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Plugins disabler mu-plugin#82

Merged
lusimeon merged 10 commits intodevelopfrom
feature/plugin-disabler
Aug 4, 2021
Merged

Plugins disabler mu-plugin#82
lusimeon merged 10 commits intodevelopfrom
feature/plugin-disabler

Conversation

@lusimeon
Copy link
Contributor

@lusimeon lusimeon commented Jul 5, 2021

Add the ability to disable plugins depends on environment (local,preprod,production).

The following server environment variables must be set:

DISABLE_PLUGINS_[ENVIRONMENT]=example/example1.php

Copy link
Collaborator

@titouanmathis titouanmathis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition!

Could you add the plugin path to both the PHPCS config in phpcs.xml and the PHPStan config in phpstan.neon?

@lusimeon lusimeon requested a review from titouanmathis July 12, 2021 10:19
Copy link
Collaborator

@titouanmathis titouanmathis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@titouanmathis
Copy link
Collaborator

@lusimeon Could you add a small section in the template's README.md file about this plugin?

@lusimeon lusimeon force-pushed the feature/plugin-disabler branch from df99cb5 to 84c0aaa Compare July 12, 2021 14:33
Autoload done with boxuk/wp-muplugin-loader
Autoload need `Plugin Name:` in file description to work
@lusimeon lusimeon merged commit b325fbb into develop Aug 4, 2021
@perruche perruche mentioned this pull request Nov 19, 2021
@titouanmathis titouanmathis deleted the feature/plugin-disabler branch June 24, 2022 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants