WC_Background_Updater::dispatch()
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.
Return
null
. Nothing.
Usage
$WC_Background_Updater = new WC_Background_Updater(); $WC_Background_Updater->dispatch();
Code of WC_Background_Updater::dispatch() WC Background Updater::dispatch WC 6.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' ) ); } }