Automattic\WooCommerce\Admin\RemoteInboxNotifications

WooCommerceAdminUpdatedRuleProcessor::process()publicWC 1.0

Process the rule.

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

No Hooks.

Return

true|false. Whether the rule passes or not.

Usage

$WooCommerceAdminUpdatedRuleProcessor = new WooCommerceAdminUpdatedRuleProcessor();
$WooCommerceAdminUpdatedRuleProcessor->process( $rule, $stored_state );
$rule(object) (required)
The specific rule being processed by this rule processor.
$stored_state(object) (required)
Stored state.

Code of WooCommerceAdminUpdatedRuleProcessor::process() WC 7.1.0

public function process( $rule, $stored_state ) {
	return get_option( RemoteInboxNotificationsEngine::WCA_UPDATED_OPTION_NAME, false );
}