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{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of Events::do_wc_admin_daily() WC 7.1.0

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

	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( 'onboarding' ) ) {
		( new MailchimpScheduler() )->run();
	}
}