WC_Product_Attribute::set_visible()publicWC 1.0

Set if visible.

Method of the class: WC_Product_Attribute{}

No Hooks.

Return

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() code WC 8.7.0

public function set_visible( $value ) {
	$this->data['visible'] = wc_string_to_bool( $value );
}