WooCommerce Code Reference

TotalPaymentsVolumeProcessor
in package
implements RuleProcessorInterface

Rule processor that passes when a store's payments volume exceeds a provided amount.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

process()  : bool
Compare against the store's total payments volume.
validate()  : bool
Validates the rule.
get_reports_query()  : Query
Get the report query.

Methods

process()

Compare against the store's total payments volume.

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.