LLMS_Privacy::get_student_orders( LLMS_Student $student, int $page )
Retrieve student orders
Parameters Parameters
- $student
-
(LLMS_Student) (Required) Student object.
- $page
-
(int) (Required) Page number.
Return Return
(array)
Source Source
File: includes/privacy/class-llms-privacy.php
protected static function get_student_orders( $student, $page ) { $done = true; $results = array(); $orders = $student->get_orders( array( 'count' => 250, 'page' => $page, ) ); if ( $orders && $orders['pages'] ) { $results = $orders['orders']; $done = ( absint( $page ) === absint( $orders['pages'] ) ); } return array( 'done' => $done, 'orders' => $results, ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |