Install a plugin
install_pluginInstall a WordPress plugin from the WordPress.org repository by its slug, with optional immediate activation for your site.
Instructions
Install a plugin from the WordPress.org repository by its slug, optionally activating it straight away. Search first with search_plugins to get the right slug. Installation writes files to the server and needs filesystem write access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | WordPress.org plugin slug, e.g. "classic-editor". Find it with search_plugins. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| activate | No | Activate immediately after installing. |