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


(string|string[]) (Optional) List of enrollment statuses to query by status query is an OR relationship. Default is 'enrolled'.

Default value: 'enrolled'


(int) (Optional) Number of results. Default is 50.

Default value: 50


(int) (Optional) Number of results to skip (for pagination). Default is 0.

Top ↑

Return Return


Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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