LLMS_Course::get_student_count( boolean $skip_cache = false )

Retrieve the number of enrolled students in the course


Description Description

The cached value is calculated in the LLMS_Processor_Course_Data background processor.

If, for whatever reason, it’s not found, it will be calculated on demand and saved for later use.


Parameters Parameters

$skip_cache

(Optional) Default: false. Whether or not to bypass the cache. If true, bypasses the cache.

Default value: false


Top ↑

Return Return

(int)


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.12.0 Use cached value where possible.
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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