WooCommerce Code Reference

RuleProcessorInterface

Rule processor interface

Table of Contents

process()  : bool
Processes a rule, returning the boolean result of the processing.
validate()  : bool
Validates the rule.

Methods

process()

Processes a rule, returning the boolean result of the processing.

public process(object $rule, object $stored_state) : bool
Parameters
$rule : object

The rule to process.

$stored_state : object

Stored state.

Return values
boolThe result of the processing.