mainwp_plugins_install
Install a plugin from WordPress.org on a specified site by providing the site ID or domain and the plugin slug. Supports dry run to simulate the operation without making changes.
Instructions
Install a plugin from WordPress.org on a site
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site ID (number) or domain name (e.g., "1" or "pavinglist.com") | |
| slug | Yes | Plugin slug from WordPress.org (e.g., "akismet") | |
| dry_run | No | Simulate the operation without making changes (defaults to MAINWP_ENABLE_DRY_RUN_BY_DEFAULT) |