Create a draft theme
create_draft_themeClone an installed theme into an isolated draft copy for safe editing. Preview on a private URL before publishing without affecting the live site.
Instructions
Clone an installed theme into an isolated draft copy that you can edit freely without touching the live site. Every theme edit should go through a draft: write files, preview them on a private tokenised URL, then publish_draft_theme when you are happy (which backs up the previous theme first). Omit from_theme to clone the currently active theme.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| draft_name | No | Human-readable name for the draft. Defaults to "<theme> (draft)". | |
| from_theme | No | Stylesheet to clone. Defaults to the active theme. |