WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

StoredStateSetupForProducts::are_there_products() private WC 1.0

Are there products query.

{} It's a method of the class: StoredStateSetupForProducts{}

No Hooks.

Return

true|false. Nothing.

Usage

$result = StoredStateSetupForProducts::are_there_products();

Code of StoredStateSetupForProducts::are_there_products() WC 5.3.0

<?php
private static function are_there_products() {
	$query    = new \WC_Product_Query(
		array(
			'limit'    => 1,
			'paginate' => true,
			'return'   => 'ids',
			'status'   => array( 'publish' ),
		)
	);
	$products = $query->get_products();
	$count    = $products->total;

	return $count > 0;
}