WordPress at Your Fingertips
function is not described

WC_Product_Attribute::set_visible() public WC 1.0

Set if visible.

{} 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_visible( $value );
$value(true|false) (required)
If is visible on Product's additional info tab.

Code of WC_Product_Attribute::set_visible() WC 5.6.0

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