2017 © Pedro Peláez
 

wordpress-plugin tivwp-force-deactivate-plugins

TIVWP Force Deactivate Plugins

image

tivwp/tivwp-force-deactivate-plugins

TIVWP Force Deactivate Plugins

  • Sunday, April 23, 2017
  • by tivnet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

TIVWP\Force Deactivate Plugins

Automatically disables plugins on production server., (*1)

If the WP_LOCAL_DEV define is NOT true, disables plugins that you specify., (*2)

This is the reverse logic of the CWS_Disable_Plugins_When_Local_Dev by Mark Jaquith (@markjaquith)., (*3)

To install

  • Make sure you have the following settings in your project's composer.json:
{
    "require": {
        "composer/installers": "^1.0"
    },
    "extra": {
        "installer-paths": {
            "path/to/mu-plugins/{$name}/": [
                "type:wordpress-muplugin"
            ]
        }
    }
}
  • Run this in your project's root folder:
composer require tivwp/tivwp-force-deactivate-plugins
  • The plugin files will be installed in the path/to/mu-plugins/tivwp-force-deactivate-plugins folder. However, WordPress ignores subfolders in the mu-plugins. Therefore, you need to copy the tivwp-force-deactivate-plugins.php one level up, to the mu-plugins.

Settings

  • Put this to a local config file (excluded from the repo):
define( 'WP_LOCAL_DEV', true );
  • and this - to the wp-config.php (edit, of course):
define( 'TIVWP_LOCAL_DEV_PLUGINS', array(
   'debug-bar/debug-bar.php',
   'query-monitor/query-monitor.php',
   'tivwp-email/tivwp-email.php',
) );

Author

  • Gregory Karpinsky (@tivnet)

License

GPL-3.0, (*4)

The Versions

23/04 2017

dev-master

9999999-dev

TIVWP Force Deactivate Plugins

  Sources   Download

GPL-3.0

The Requires

 

by Gregory Karpinsky (@tivnet)

wordpress developer

23/04 2017

1.0.1

1.0.1.0

TIVWP Force Deactivate Plugins

  Sources   Download

GPL-3.0

The Requires

 

by Gregory Karpinsky (@tivnet)

wordpress developer

23/04 2017

1.0.0

1.0.0.0

TIVWP Force Deactivate Plugins

  Sources   Download

GPL-3.0

by Gregory Karpinsky (@tivnet)

wordpress developer