Draft theme ability reference
Reference for the GoBuildWP Pro 1.15.0 source. Installed schemas and policy remain authoritative.
This Draft theme ability reference lists every call GoBuildWP Pro registers for sandbox draft copies of the active theme, with the exact slug an agent sends and what the plugin's own contract says it does. Of the 4, 1 reads, 1 writes and 2 are marked destructive in the source.
Read-only, write and destructive groups describe the source annotations. They do not establish a minimum safety profile, human approval or undo support. Those controls are separate: check the installed ability, the connected user and the active site policy before calling it. A read can still return sensitive data. These pages are not evidence that every operation passed an end-to-end runtime test.
What Draft theme needs before these load
These 4 abilities come with GoBuildWP Pro 1.15.0. Pro registration requires the Freemius SDK to permit premium code and any companion dependency the module checks to be available. The module declares no version floor of its own; dependency and permission checks still apply. wppilot/integration-health and the module's setup call describe the installed availability.
- Declared compatibility tags
- free, pro (source compatibility labels; these do not establish that the vendor sells a Free or Pro edition. Follow the prerequisites and installed-plugin checks below.)
Draft theme reads
| Ability | What it does |
|---|---|
wppilot/theme-draft-statusDraft Theme Status | Reports the live theme and the draft theme, if there is one: its folder, the theme it was copied from, its parent for a child theme, and whether the live theme's settings changed after the copy. Read-only. |
Draft theme writes
| Ability | What it does |
|---|---|
wppilot/theme-draft-createCreate a Draft Theme | Copies the active theme's folder to wp-content/themes/<slug>-draft (a child theme: only the child is copied, and the draft keeps the same parent), names it "<name> (Draft)" and copies its theme settings. Visitors keep seeing the live theme. Edit the draft's files, then an administrator previews it from the "Draft theme" banner in wp-admin. Not copied: page-builder theme templates and Site Editor customisations, which live in the database (the result lists warnings), and .git or node_modules folders. Refused when a draft already exists, the theme has more than 4000 files or 150 MB, contains a symbolic link, or the site sets DISALLOW_FILE_MODS. |
Destructive Draft theme calls
| Ability | What it does |
|---|---|
wppilot/theme-draft-discardDiscard the Draft Theme | Deletes the draft theme's folder and its theme settings. Only a folder this kit created (it carries the kit's marker file) is deleted, and never the theme the site runs on. Not undoable. Requires confirm=true. |
wppilot/theme-draft-publishPublish the Draft Theme | Switches the live site to the draft theme with WordPress's own switch_theme() and flushes the object cache. The previous theme's folder and settings are kept, never deleted. Undoable: wppilot/rollback-change switches back to the previous theme and restores its theme settings. Requires confirm=true. Refused under Read Mode and while draft-first is on. |