WC_Product_Usage_Rule_Set::__construct()
Constructor
Method of the class: WC_Product_Usage_Rule_Set{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product_Usage_Rule_Set = new WC_Product_Usage_Rule_Set(); $WC_Product_Usage_Rule_Set->__construct( $rules );
- $rules(array) (required)
- product feature restriction rules.
WC_Product_Usage_Rule_Set::__construct() WC Product Usage Rule Set:: construct code WC 9.4.2
public function __construct( $rules ) { $this->rules = $rules; }