WordPress at Your Fingertips
function is not described

wc_attributes_array_filter_variation() WC 3.0.0

Callback for array filter to get variation attributes only.

No Hooks.

Return

true|false.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of wc_attributes_array_filter_variation() WC 5.7.0

function wc_attributes_array_filter_variation( $attribute ) {
	return $attribute && is_a( $attribute, 'WC_Product_Attribute' ) && $attribute->get_variation();
}