WooCommerce Code Reference

PluginVersionRuleProcessor
in package
implements RuleProcessorInterface

Rule processor for sending when the provided plugin is activated and matches the specified version.

Interfaces, Classes and Traits

RuleProcessorInterface
Rule processor interface

Table of Contents

$plugins_provider  : PluginsProviderInterface
Plugins provider instance.
__construct()  : mixed
Constructor.
process()  : bool
Process the rule.
validate()  : bool
Validates the rule.

Properties

Methods

process()

Process 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
boolWhether the rule passes or not.