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