public function create(array $arguments)
    {
        $post = $this->mockAdapterPost($arguments);

        return wp_insert_post(array_merge(
            (array) $post->getAdaptee(),
            ['post_type' => $this->getSlug()]
        ));
    }
public function create(array $arguments)
    {
        $post = $this->mockAdapterPost($arguments);

        return wp_insert_post(array_merge(
            (array) $post->getAdaptee(),
            ['post_type' => $this->getSlug()]
        ));
    }
public function create ( array $ arguments ) { $ post = $ this -> mockAdapterPost ( $ arguments ) ; return wp_insert_post ( array_merge ( ( array ) $ post -> getAdaptee ( ) , [ 'post_type' => $ this -> getSlug ( ) ] ) ) ; }
Create post.

@return bool
Create post .