wp_update_draft_post
Update an existing draft post. If the post is published, creates a new draft instead to avoid accidental publishing.
Instructions
Update an existing DRAFT post. If post is published, creates a new draft instead. Never publishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| slug | No | ||
| tags | No | ||
| title | No | ||
| content | No | ||
| excerpt | No | ||
| categories | No |