WooCommerce Code Reference

FailRuleProcessor
in package
implements RuleProcessorInterface

Rule processor that fails.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

process()  : bool
Fails the rule.
validate()  : bool
Validates the rule.

Methods

process()

Fails the rule.

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

The specific rule being processed by this rule processor.

$stored_state : object

Stored state.

Return values
boolAlways false.