WordPress at a glance
function is not described

wc_products_array_filter_visible() WC 3.0.0

Callback for array filter to get visible only.

No Hooks.

Return

true|false. Nothing.

Usage

wc_products_array_filter_visible( $product );
$product(WC_Product) (required)
WC_Product object.

Changelog

Since 3.0.0 Introduced.

Code of wc_products_array_filter_visible() WC 5.2.2

<?php
function wc_products_array_filter_visible( $product ) {
	return $product && is_a( $product, 'WC_Product' ) && $product->is_visible();
}