WooCommerce Code Reference

IsWooExpressRuleProcessor implements RuleProcessorInterface

Rule processor that passes (or fails) when the site is on a Woo Express plan.

You may optionally pass a plan name to target a specific Woo Express plan.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

process()  : bool
Passes (or fails) based on whether the site is a Woo Express plan.
validate()  : bool
Validate the rule.

Methods

process()

Passes (or fails) based on whether the site is a Woo Express plan.

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.