WooCommerce Code Reference

GetRuleProcessorForContext
in package

A custom GetRuleProcessor class to support context_vars and context_plugins rule types.

GetRuleProcessor class.

Table of Contents

$context  : array<string|int, mixed>
Contains the context variables.
__construct()  : mixed
Constructor.
get_processor()  : RuleProcessorInterface
Get the processor for the specified rule type.

Properties

Methods