LLMS_Membership_Data::get_orders( string $period = 'current' )
Retrieve # of orders placed for the membership within the period.
Parameters Parameters
- $period
-
(string) (Optional) Date period [current|previous]. Default 'current'.
Default value: 'current'
Return Return
(int)
Source Source
File: includes/class.llms.membership.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.32.0 | Introduced. |