Add a new auto-draft post.
public insert_auto_draft_post ( array $postarr ) : WP_Post | WP_Error | ||
$postarr | array | { Post array. Note that post_status is overridden to be `auto-draft`. @var string $post_title Post title. Required. @var string $post_type Post type. Required. @var string $post_name Post name. @var string $post_content Post content. } |
return | WP_Post | WP_Error | Inserted auto-draft post object or error. |