WC_Product_Attribute::set_visible
Set if visible.
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_visible( $value );
- $value(true|false) (required)
- If is visible on Product's additional info tab.
WC_Product_Attribute::set_visible() WC Product Attribute::set visible code WC 10.8.1
public function set_visible( $value ) {
$this->data['visible'] = wc_string_to_bool( $value );
}