LLMS_Course_Data::get_orders( string $period = 'current' )

retrieve # of orders placed for the course within the period


Description Description


Parameters Parameters

$period

(string) (Optional) date period [current|previous]

Default value: 'current'


Top ↑

Return Return

(int)


Top ↑

Source Source

File: includes/class.llms.course.data.php

	public function get_orders( $period = 'current' ) {

		$query = $this->orders_query( array(
			array(
				'after'     => $this->get_date( $period, 'start' ),
				'before'    => $this->get_date( $period, 'end' ),
				'inclusive' => true,
			),
		), 1 );
		return $query->found_posts;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: