Update Plugin
wp_update_pluginUpdate an installed WordPress plugin from slug, URL, encoded zip, or local file, keeping it active and requiring explicit confirmation for production sites.
Instructions
Update / replace an already-installed plugin in place (overwrite forced on). Pick ONE source: slug, url, zip_b64, or zip_path (a local zip the connector reads for you). Keeps the plugin's activation state. 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 | Ensure the plugin is active after updating. | |
| zip_path | No | Path to a plugin zip ON THIS COMPUTER; the connector reads + encodes it for you. Best for our own custom plugins. | |
| 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. |