Save the post for the loaded changeset.
public save_changeset_post ( array $args = [] ) : array | WP_Error | ||
$args | array | { Args for changeset post. @type array $data Optional additional changeset data. Values will be merged on top of any existing post values. @type string $status Post status. Optional. If supplied, the save will be transactional and a post revision will be allowed. @type string $title Post title. Optional. @type string $date_gmt Date in GMT. Optional. @type int $user_id ID for user who is saving the changeset. Optional, defaults to the current user ID. @type bool $starter_content Whether the data is starter content. If false (default), then $starter_content will be cleared for any $data being saved. } |
return | array | WP_Error | Returns array on success and WP_Error with array data on error. |