wp_update_post
Update a WordPress post by ID or slug. Modify title, content, status, categories, tags, author, excerpt, featured media, and more to keep posts current.
Instructions
Update selected fields on a WordPress post by ID or slug.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| slug | No | ||
| tags | No | ||
| title | No | ||
| author | No | ||
| status | No | ||
| sticky | No | ||
| content | No | ||
| dry_run | No | Preview changes without writing | |
| excerpt | No | ||
| date_gmt | No | ||
| categories | No | ||
| featured_media | No | ||
| if_unmodified_since | No | Fail if modified_gmt changed since this timestamp |