WooCommerce Code Reference

IsEcommerceRuleProcessor implements RuleProcessorInterface

Rule processor that passes (or fails) when the site is on the eCommerce plan.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

process()  : bool
Passes (or fails) based on whether the site is on the eCommerce plan or not.
validate()  : bool
Validate the rule.

Methods

process()

Passes (or fails) based on whether the site is on the eCommerce plan or not.

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

The rule being processed by this rule processor.

$stored_state : object

Stored state.

Return values
boolThe result of the operation.