Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated()public staticWC 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.

Return

null. Nothing (null).

Usage

$result = RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated();

RemoteInboxNotificationsEngine::run_on_woocommerce_admin_updated() code WC 8.7.0

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 );
}