Publish a draft theme
publish_draft_themePublish a draft theme to your live site after backup, ensuring reversible changes. Confirm to activate the new theme visitors see.
Instructions
Promote a draft theme to the live site. The currently active theme is backed up first, so the change is reversible. This is the one step that changes what visitors see — everything before it is sandboxed. Requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Draft theme id to publish. Defaults to the most recent draft. | |
| confirm | No | Required — this changes the live site. | |
| 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. |