WP Manifestindependent plugin directory
manifest / developer / tivwp-force-deactivate-plugins

TIVWP Force Deactivate Plugins

TIVWP Force Deactivate Plugins

★ 1stars
1.0.1latest · 9 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/tivwp/tivwp-force-deactivate-plugins/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Automatically disables plugins on production server.

If the WP_LOCAL_DEV define is NOT true, disables plugins that you specify.

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

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

Releases

2 releases.

Tag
Published
1.0.1 latest
Apr 23, 2017 9 years ago
Apr 23, 2017 9 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.