Install Plugin
wp_install_pluginInstall a WordPress plugin by slug, zip URL, base64 data, or local file. Optionally activate immediately, overwrite existing, or require production confirmation.
Instructions
Install a plugin on the target WordPress site. Pick ONE source: slug (from WordPress.org), url (allow-listed zip), zip_b64, or zip_path (a local zip file the connector reads for you). Set activate=true to activate right after install. For updating an already-installed plugin, use wp_update_plugin instead (or pass overwrite=true here). On the LIVE production site this refuses unless confirm_production=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Zip URL on an allow-listed host (site itself, github.com/*.githubusercontent.com, drive.google.com, docs.google.com). | |
| slug | No | Install from the WordPress.org directory by slug (public plugins only). | |
| zip_b64 | No | Base64-encoded plugin zip. | |
| activate | No | Activate the plugin immediately after install. | |
| zip_path | No | Path to a plugin zip ON THIS COMPUTER; the connector reads + encodes it for you. Best for our own custom plugins. | |
| overwrite | No | Overwrite existing files if the plugin is already installed. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |
| confirm_production | No | Required (true) to run on the LIVE production site. |