Tribe__Process__Post_Thumbnail_Setter::dispatch()
{@inheritdoc}
Source
File: src/Tribe/Process/Post_Thumbnail_Setter.php
public function dispatch() { if ( ! isset( $this->post_id, $this->post_thumbnail ) ) { // since this is a developer error we are not localizing this error string throw new InvalidArgumentException( 'Post ID and featured image should be set before trying to dispatch.' ); } $this->data( array( 'post_id' => $this->post_id, 'post_thumbnail' => trim( $this->post_thumbnail ) ) ); return parent::dispatch(); }