Automattic\WooCommerce\Internal\Admin

Events::do_wc_admin_daily()publicWC 1.0

Daily events to run.

Note: Order_Milestones::possibly_add_note is hooked to this as well.

Метод класса: Events{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Events = new Events();
$Events->do_wc_admin_daily();

Код Events::do_wc_admin_daily() WC 8.7.0

public function do_wc_admin_daily() {
	$this->possibly_add_notes();
	$this->possibly_delete_notes();
	$this->possibly_update_notes();
	$this->possibly_refresh_data_source_pollers();

	if ( $this->is_remote_inbox_notifications_enabled() ) {
		DataSourcePoller::get_instance()->read_specs_from_data_sources();
		RemoteInboxNotificationsEngine::run();
	}

	if ( $this->is_merchant_email_notifications_enabled() ) {
		MerchantEmailNotifications::run();
	}

	if ( Features::is_enabled( 'core-profiler' ) ) {
		( new MailchimpScheduler() )->run();
	}
}