WordPress at a glance
function is not described


OrRuleProcessor::process() public WC 1.0

Performs an OR operation on the rule's left and right operands.

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

No Hooks.


true|false. The result of the operation.


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

Code of OrRuleProcessor::process() WC 5.2.2

public function process( $rule, $stored_state ) {
	foreach ( $rule->operands as $operand ) {
		$evaluated_operand = $this->rule_evaluator->evaluate(

		if ( $evaluated_operand ) {
			return true;

	return false;