PHPackages                             tivwp/tivwp-force-deactivate-plugins - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tivwp/tivwp-force-deactivate-plugins

ActiveWordpress-muplugin[Utility &amp; Helpers](/categories/utility)

tivwp/tivwp-force-deactivate-plugins
====================================

TIVWP Force Deactivate Plugins

1.0.1(9y ago)118[1 issues](https://github.com/TIVWP/tivwp-force-deactivate-plugins/issues)GPL-3.0PHP

Since Apr 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/TIVWP/tivwp-force-deactivate-plugins)[ Packagist](https://packagist.org/packages/tivwp/tivwp-force-deactivate-plugins)[ RSS](/packages/tivwp-tivwp-force-deactivate-plugins/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

TIVWP\\Force Deactivate Plugins
===============================

[](#tivwpforce-deactivate-plugins)

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](https://gist.github.com/markjaquith/1044546) by Mark Jaquith (@markjaquith).

To install
----------

[](#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
--------

[](#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
------

[](#author)

- Gregory Karpinsky (@tivnet)

License
-------

[](#license)

GPL-3.0

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3355d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4ffab6e721cd0f026a47028900c31121a7257662b07c3788329418b6d1e58d4?d=identicon)[tivnet](/maintainers/tivnet)

---

Top Contributors

[![tivnet](https://avatars.githubusercontent.com/u/1696330?v=4)](https://github.com/tivnet "tivnet (6 commits)")

---

Tags

wordpressdeveloper

### Embed Badge

![Health badge](/badges/tivwp-tivwp-force-deactivate-plugins/health.svg)

```
[![Health](https://phpackages.com/badges/tivwp-tivwp-force-deactivate-plugins/health.svg)](https://phpackages.com/packages/tivwp-tivwp-force-deactivate-plugins)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k456.5k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

374458.3k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)[devaloka/network-wp-query

A WordPress plugin that provides Network-wide WP Query for Multisite environment

161.3k](/packages/devaloka-network-wp-query)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
