WordPress at a glance
function is not described

wc_products_array_filter_visible_grouped() WC 3.1.0

Callback for array filter to get visible grouped products only.

No Hooks.

Return

true/false.

Usage

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

Changelog

Since 3.1.0 Introduced.

Code of wc products array filter visible grouped: woocommerce/includes/wc-product-functions.php WC 3.7.0

<?php
function wc_products_array_filter_visible_grouped( $product ) {
	return $product && is_a( $product, 'WC_Product' ) && ( 'publish' === $product->get_status() || current_user_can( 'edit_product', $product->get_id() ) );
}