WC_Background_Updater::dispatch()publicWC 1.0

Dispatch updater.

Updater will still run via cron job if this fails for any reason.

Метод класса: WC_Background_Updater{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Background_Updater = new WC_Background_Updater();
$WC_Background_Updater->dispatch();

Код WC_Background_Updater::dispatch() WC 8.7.0

public function dispatch() {
	$dispatched = parent::dispatch();
	$logger     = wc_get_logger();

	if ( is_wp_error( $dispatched ) ) {
		$logger->error(
			sprintf( 'Unable to dispatch WooCommerce updater: %s', $dispatched->get_error_message() ),
			array( 'source' => 'wc_db_updates' )
		);
	}
}