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. Iftrue
, bypasses the cache.Default value: false
Return Return
(int)
Source Source
File: includes/models/model.llms.course.php
Changelog Changelog
Version | Description |
---|---|
4.12.0 | Use cached value where possible. |
3.15.0 | Introduced. |