public createPost ( array $post ) : integer | ||
$post | array | (as wp_insert_post) |
return | integer |
public function createPost(array $post)
{
$post["porcelain"] = null;
// wp-Cli returns only id
return intval($this->runWpCliCommand('post', 'create', $post));
}