Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated │ public static │ WC 1.0

Set an option indicating that WooCommerce Admin has just been updated, run the specs, then clear that option. This lets the WooCommerceAdminUpdatedRuleProcessor trigger on WCA update.

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

Хуков нет.

Возвращает

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

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

$result = RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated();

Код RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated() WC 11.2.2

public static function run_on_woocommerce_admin_updated() {
	update_option( self::WCA_UPDATED_OPTION_NAME, true, false );

	self::run();

	update_option( self::WCA_UPDATED_OPTION_NAME, false, false );
}