Create Custom Post
wp_create_custom_postCreate a new item of any custom post type. Defaults to draft status. Use wp_list_post_types to discover available post types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Publish date (ISO 8601 format). Use future date for scheduling. | |
| meta | No | Custom meta fields as key-value pairs | |
| title | Yes | Post title | |
| status | No | Status (default: draft) | |
| content | No | Post content (HTML supported) | |
| excerpt | No | ||
| site_id | No | Site ID to target (optional if you have only one connected site) | |
| rest_base | Yes | REST base of the post type |