wp_install_theme
Install a WordPress theme from the official directory by slug, with optional activation to apply it right away.
Instructions
Install a theme from WordPress.org by its slug. Optionally activate it after installation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Theme slug (e.g. "astra", "flavor") | |
| activate | No | Activate after install |