WC_Background_Updater::dispatch()

Dispatch updater.


Description Description

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


Source Source

File: includes/class-wc-background-updater.php

37
38
39
40
41
42
43
44
45
46
47
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' )
        );
    }
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.