Activate Plugin
wp_activate_pluginActivate an installed 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" or "akismet/akismet") | |
| dry_run | No | If true, shows what would happen without activating | |
| site_id | No | Site ID to target (optional if you have only one connected site) |