wp_publish_swap
Promote a staged draft to the live post, then verify by purging cache, deleting draft, and probing the public URL. Requires allow_prod for production writes.
Instructions
Promote a staged draft onto the live post (WP keeps a revision), then verify.
Copies the draft's content onto live_id, purges cache (Divi), deletes the
draft, and probes the public URL. Prod writes require allow_prod=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| install | Yes | ||
| live_id | Yes | ||
| draft_id | Yes | ||
| allow_prod | No |