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'
Return Return
(int)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.15.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: