WC_Product_Usage_Rule_Set
in package
WC_Product_Usage_Rule_Set.
Table of Contents
- $rules : array<string|int, mixed>|null
- Set of product feature restriction rules.
- __construct() : mixed
- Constructor
- get_rule() : mixed|null
- Retrieve the value of a rule by name
Properties
$rules
Set of product feature restriction rules.
protected
array<string|int, mixed>|null
$rules
Methods
__construct()
Constructor
public
__construct(array<string|int, mixed> $rules) : mixed
Parameters
- $rules : array<string|int, mixed>
-
product feature restriction rules.
Return values
mixed —get_rule()
Retrieve the value of a rule by name
public
get_rule(string $rule_name) : mixed|null
Parameters
- $rule_name : string
-
name of the rule to retrieve value.