Deactivate Plugin
wp_deactivate_pluginDeactivate a WordPress plugin. Use wp_list_plugins first to find the plugin slug. Use dry_run=true to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plugin | Yes | Plugin slug (e.g. "woocommerce/woocommerce") | |
| dry_run | No | If true, shows what would happen without deactivating | |
| site_id | No | Site ID to target (optional if you have only one connected site) |