/** * Dispatch updater. * * Updater will still run via cron job if this fails for any reason. */ public function dispatch() { $dispatched = parent::dispatch(); $logger = new WC_Logger(); if (is_wp_error($dispatched)) { $logger->add('wc_db_updates', sprintf('Unable to dispatch WooCommerce updater: %s', $dispatched->get_error_message())); } }
/** * Dispatch updater. * * Updater will still run via cron job if this fails for any reason. */ public function dispatch() { $dispatched = parent::dispatch(); if (is_wp_error($dispatched)) { $this->error = $dispatched->get_error_message(); add_action('admin_notices', array($this, 'dispatch_error')); } }
/** * Dispatch updater. * * Updater will still run via cron job if this fails for any reason. */ public function dispatch() { $dispatched = parent::dispatch(); $logger = ac_get_logger(); if (is_wp_error($dispatched)) { $logger->add('ac_db_updates', sprintf('Unable to dispatch AxisComposer updater: %s', $dispatched->get_error_message())); } }
public function dispatch() { parent::dispatch(); }