WC_Background_Emailer::dispatch_queuepublicWC 1.0

Save and run queue.

Method of the class: WC_Background_Emailer{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Background_Emailer = new WC_Background_Emailer();
$WC_Background_Emailer->dispatch_queue();

WC_Background_Emailer::dispatch_queue() code WC 10.3.3

public function dispatch_queue() {
	if ( ! empty( $this->data ) ) {
		$this->close_http_connection();
		$this->save()->dispatch();
	}
}