LLMS_Membership::get_students( string|string[] $statuses = 'enrolled', int $limit = 50, int $skip )
Get an array of student IDs based on enrollment status in the membership
Parameters Parameters
- $statuses
-
(string|string[]) (Optional) List of enrollment statuses to query by status query is an OR relationship. Default is 'enrolled'.
Default value: 'enrolled'
- $limit
-
(int) (Optional) Number of results. Default is
50
.Default value: 50
- $skip
-
(int) (Optional) Number of results to skip (for pagination). Default is
0
.
Return Return
(array)
Source Source
File: includes/models/model.llms.membership.php
public function get_students( $statuses = 'enrolled', $limit = 50, $skip = 0 ) { return llms_get_enrolled_students( $this->get( 'id' ), $statuses, $limit, $skip ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |