WordPress at Your Fingertips
function is not described

WC_Background_Updater::dispatch() public WC 1.0

Dispatch updater.

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

{} It's a method of the class: WC_Background_Updater{}

No Hooks.


null. Nothing.


$WC_Background_Updater = new WC_Background_Updater();

Code of WC_Background_Updater::dispatch() WC 5.7.1

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

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