WC_Product_Attribute::set_variation
Set if variation.
Method of the class: WC_Product_Attribute{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Product_Attribute = new WC_Product_Attribute(); $WC_Product_Attribute->set_variation( $value );
- $value(true|false) (required)
- If is used for variations.
WC_Product_Attribute::set_variation() WC Product Attribute::set variation code WC 10.6.2
public function set_variation( $value ) {
$this->data['variation'] = wc_string_to_bool( $value );
}