WooCommerce Code Reference

OnboardingProfileRuleProcessor
in package
implements RuleProcessorInterface

Rule processor that performs a comparison operation against a value in the onboarding profile.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

process()  : bool
Performs a comparison operation against a value in the onboarding profile.
validate()  : bool
Validates the rule.

Methods

process()

Performs a comparison operation against a value in the onboarding profile.

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.