WordPress at a glance
function is not described


StoredStateRuleProcessor::process() public WC 1.0

Performs a comparison operation against a value in the stored state object.

{} It's a method of the class: StoredStateRuleProcessor{}

No Hooks.


true|false. The result of the operation.


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

Code of StoredStateRuleProcessor::process() WC 5.3.0

public function process( $rule, $stored_state ) {
	if ( ! isset( $stored_state->{$rule->index} ) ) {
		return false;

	return ComparisonOperation::compare(