LLMS_Course::get_student_count()

Retrieve the number of enrolled students in the course


Description Description


Return Return

(int)


Top ↑

Source Source

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

	public function get_student_count() {

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

		return $query->found_results;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: