WordPress at a glance
function is not described

wc_attributes_array_filter_visible() WC 3.0.0

Callback for array filter to get visible only.

No Hooks.

Return

true|false. Nothing.

Usage

wc_attributes_array_filter_visible( $attribute );
$attribute(WC_Product_Attribute) (required)
Attribute data.

Changelog

Since 3.0.0 Introduced.

Code of wc_attributes_array_filter_visible() WC 5.3.0

<?php
function wc_attributes_array_filter_visible( $attribute ) {
	return $attribute && is_a( $attribute, 'WC_Product_Attribute' ) && $attribute->get_visible() && ( ! $attribute->is_taxonomy() || taxonomy_exists( $attribute->get_name() ) );
}