Manage WordPress Plugin
wordpress_manage_pluginActivate, deactivate, update or delete a plugin that is already installed on a connected WordPress site.
Use it to switch off a plugin the site does not need — an unused analytics or tracking plugin
keeps loading scripts on every page. Deactivating leaves the plugin and its settings in place,
so it can be switched back on; delete removes its files, and an ACTIVE plugin is refused
unless you deactivate it first. plugin is the file path from wordpress_list_plugins, for
example "statcounter/statcounter.php".
If activating fails, the reply now carries the real reason and a writability check: page cache plugins need wp-config.php and wp-content to be writable, and on hosts where they are not, no cache plugin can be enabled at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| plugin | Yes | ||
| site_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||