PHPackages                             bradp/required-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. bradp/required-plugins

ActiveWordpress-plugin[Authentication &amp; Authorization](/categories/authentication)

bradp/required-plugins
======================

Make certain plugins required so that they cannot be (easily) deactivated.

942PHP

Since Oct 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bradp/required-plugins)[ Packagist](https://packagist.org/packages/bradp/required-plugins)[ RSS](/packages/bradp-required-plugins/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Required Plugins
================

[](#required-plugins)

A library you can use to make any plugins required and auto-activate.

- Nobody can de-activate the plugin from the WordPress Admin
- They are auto-activated when required

To use, place this library in your `mu-plugins/` directory (if you don't have one, create one in `wp-content/`), then use the example below:

Installation &amp; Update
-------------------------

[](#installation--update)

### With Composer

[](#with-composer)

Add the following to your `composer.json`

```
{
    "extra": {
        "installer-paths": {
            "mu-plugins/{$name}/": ["type:wordpress-muplugin"]
        }
    }
}
```

Then use:

```
composer require webdevstudios/wds-required-plugins
```

This will install the `mu-plugin`, e.g. `mu-plugins/wds-required-plugins` in `wp-content` based projects.

You will have to require it in e.g. `mu-plugins/wds-required-plugins-list.php`:

```
