WordPress at Your Fingertips
function is not described

WC_Tracks::get_products_count() public WC 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 5.8.0

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