wp_install_plugin
Install a WordPress plugin from the official repository by its slug, with optional immediate activation.
Instructions
Install a plugin from the WordPress.org repository by its slug. Optionally activate it immediately after installation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Plugin slug from WordPress.org (e.g. "woocommerce", "yoast-seo") | |
| activate | No | Activate the plugin after installation (default: false) |