Install a theme
install_themeInstall a WordPress theme directly from the WordPress.org repository using its slug. Use this to add themes without activating them, then activate or draft later.
Instructions
Install a theme from the WordPress.org repository by slug. Does not activate it — use activate_theme, or the draft workflow, afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | WordPress.org theme slug, e.g. "twentytwentyfive". | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |