Retrieve the number of enrolled students in the membership.

Return Return


Top ↑

Source Source

File: includes/models/model.llms.membership.php

	public function get_student_count() {

		$query = new LLMS_Student_Query(
				'post_id'  => $this->get( 'id' ),
				'statuses' => array( 'enrolled' ),
				'per_page' => 1,

		return $query->get_found_results();


Top ↑

Changelog Changelog

Version Description
6.0.0 Don't access LLMS_Student_Query properties directly.
3.32.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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