Tribe__Repository::create()
{@inheritdoc}
Source
File: src/Tribe/Repository.php
public function create() {
$postarr = $this->filter_postarr_for_create( array_merge( $this->build_postarr(), $this->create_args ) );
// During the filtering allow extending classes or filters to prevent the create completely.
if ( false === ( bool ) $postarr ) {
return false;
}
$created = call_user_func( $this->get_create_callback( $postarr ), $postarr );
$post = get_post( $created );
return $post instanceof WP_Post && $post->ID === $created ? $post : false;
}