WC_Tracks::get_products_count()public staticWC 1.0

Get total product counts.

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

No Hooks.

Return

Int. Number of products.

Usage

$result = WC_Tracks::get_products_count();

Code of WC_Tracks::get_products_count() WC 6.5.1

public static function get_products_count() {
	$product_counts = WC_Tracker::get_product_counts();
	return $product_counts['total'];
}