WC_Background_Updater::dispatch
Dispatch updater.
Updater will still run via cron job if this fails for any reason.
Method of the class: WC_Background_Updater{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Background_Updater = new WC_Background_Updater(); $WC_Background_Updater->dispatch();
WC_Background_Updater::dispatch() WC Background Updater::dispatch code WC 10.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' )
);
}
}