Title: Add a plugin
Author: WordPress VIP Documentation
Published: September 14, 2020
Last modified: December 31, 2025

---

 1. [Plugins](https://docs.wpvip.com/plugins/)
 2. Add a plugin

#  Add a plugin

On the WordPress VIP Platform, plugins cannot be installed, updated, or deleted 
from within the WordPress Admin dashboard. Plugins can only be installed, updated,
or deleted via the VIP site’s [wpcomvip GitHub repository](https://docs.wpvip.com/wpcomvip-github-repository/).
On the VIP Platform, code is deployed from git, which makes it easier to roll back
to a previous “known good” state if a site encounters issues.

 * Archived plugin files should be decompressed before being added to an application’s
   code repository.
 * A separate pull request should be created for the addition of each plugin in 
   order to make any necessary reverts as easy as possible.
 * [Third-party plugins](https://docs.wpvip.com/plugins/third-party-plugins/) should
   be added to [the `/plugins`directory](https://docs.wpvip.com/wordpress-skeleton/plugins-directory/)
   of an application’s wpcomvip GitHub repository. Plugins that are added to the`/
   plugins` directory are automatically scanned by [Codebase Manager](https://docs.wpvip.com/codebase-manager/)
   for security vulnerabilities and available version updates.
 * Custom plugins with code that needs to be auto-loaded or run earlier in the WordPress
   load process should be added to the `/client-mu-plugins` directory. 
 * All plugins can and should be [code activated](https://docs.wpvip.com/activate-plugins-through-code/)
   by a plugin loader file in `[/client-mu-plugins](https://docs.wpvip.com/wordpress-skeleton/client-mu-plugins-directory/)`.
 * Plugins that are not code activated can be manually activated within [the Plugins screen](https://wordpress.org/documentation/article/plugins-screen/)
   in the WordPress Admin dashboard.

### Plugin activation for WordPress multisite

By default, users with an Administrator role do not have the permission to activate
or deactivate plugins for an individual network site on a multisite environment.
To grant this permission to Administrators, a user with a Super Admin role must 
enable this option at the network level.

 1. Navigate to: **My Sites** > **Network Admin** > **Settings**.
 2. Under “**Menu Settings**“, toggle the “Enable administration menus” checkbox. 
    
    Enabling this option will allow all Administrators on all sites on the network 
    to access the Plugins dashboard for their site.

A user with a Super Admin role can also [network activate a plugin](https://developer.wordpress.org/advanced-administration/multisite/administration/#plugins)
for all sites on the multisite.

## Subtrees

Because the WordPress VIP Platform workflow is git-based, [GitHub subtrees](https://github.github.com/training-kit/downloads/submodule-vs-subtree-cheat-sheet/)
can be used to pull in third-party plugin code.

By using [the Git subtree workflow](https://www.atlassian.com/git/tutorials/git-subtree),
a copy of the referenced code is pulled into the site’s repository. This makes it
possible for the [VIP Code Analysis Bot](https://docs.wpvip.com/vip-code-analysis-bot/)
to run automatic code reviews on subtree code when subtree code is added or changed
in a pull request.

## Submodules

**VIP does not recommend the use of submodules**, especially for branches deploying
to a production environment.

Using submodules has several disadvantages. The [VIP Code Analysis Bot](https://docs.wpvip.com/vip-code-analysis-bot/)
is unable to analyze code in submodules. In addition, if the submodule’s code changes
in a negative way (e.g., becomes inaccessible, has its history changed, or otherwise
becomes invalid) it creates the risk of breaking a site during deployment without
warning.

If submodules are used they must meet the following requirements:

 * Submodules that reference private GitHub repositories or those that require authentication
   are not supported on the VIP Platform.
 * Submodules must be referenced in a `.gitmodules` file placed in the top-level
   directory of the repo. Failure to include this file can result in unexpected 
   issues with builds and deployment.

## Composer

Plugins can be treated as PHP dependencies, and [Composer can be used on VIP](https://docs.wpvip.com/use-composer-on-vip/)
to pull in runtime dependency packages—such as plugins—during a local or continuous
integration (CI) builds

Some plugin repositories, such as [AMP for WordPress](https://github.com/Automattic/amp-wp),
contain unbuilt versions of code. In these cases, running the command, `composer
install` is required for the plugin to work properly. Repositories like this one**
cannot be referenced as submodules** as VIP does not run these build commands on
the server.

Last updated: December 31, 2025