LLMS_Analytics::get_total_units_sold( [array] $orders )

Get number of products sold


Description Description


Parameters Parameters

$orders

([array]) (Required) [array of order objects]


Top ↑

Return Return

([int]) [total number of items sold]


Top ↑

Source Source

File: includes/class.llms.analytics.php

	public static function get_total_units_sold( $orders ) {

		$units = 0;

		if ( $orders ) {

			$units = count( $orders );

		}

		return $units;
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.