Automattic\WooCommerce\Admin\RemoteInboxNotifications
OrRuleProcessor::process()
Performs an OR operation on the rule's left and right operands.
Метод класса: OrRuleProcessor{}
Хуков нет.
Возвращает
true|false
. The result of the operation.
Использование
$OrRuleProcessor = new OrRuleProcessor(); $OrRuleProcessor->process( $rule, $stored_state );
- $rule(объект) (обязательный)
- The specific rule being processed by this rule processor.
- $stored_state(объект) (обязательный)
- Stored state.
Код OrRuleProcessor::process() OrRuleProcessor::process WC 8.7.0
public function process( $rule, $stored_state ) { foreach ( $rule->operands as $operand ) { $evaluated_operand = $this->rule_evaluator->evaluate( $operand, $stored_state ); if ( $evaluated_operand ) { return true; } } return false; }