WC_Background_Updater::dispatch
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 Background Updater::dispatch WC 10.9.1
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' )
);
}
}