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.

Method of the class: RemoteInboxNotificationsEngine{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated();

RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated() code 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 );
}