Create Post
wp_create_postCreate a new WordPress post. The post defaults to "draft" status for safety — specify status "publish" explicitly to publish immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | URL slug | |
| tags | No | Array of tag IDs to assign | |
| title | Yes | Post title | |
| author | No | Author user ID (defaults to authenticated user) | |
| status | No | Post status (defaults to draft) | |
| content | Yes | Post content (HTML supported) | |
| excerpt | No | Post excerpt | |
| site_id | No | Site ID to target (optional if you have only one connected site) | |
| categories | No | Array of category IDs to assign | |
| featured_media | No | Featured image media ID |