LLMS_Processor_Course_Data::maybe_throttle( int $num_students, int $course_id )
For large courses, only recalculate once every 4 hours
Description Description
Parameters Parameters
- $num_students
-
(Required) Number of students in the current course.
- $course_id
-
(Required) WP_Post ID of the course.
Return Return
(boolean) When true
the dispatch is throttled and when false
it will run.
Source Source
File: includes/processors/class.llms.processor.course.data.php
Changelog Changelog
Version | Description |
---|---|
4.12.0 | Adjusted access from private to protected. Pull last run data on a per-course basis. Added parameter $course_id . |
3.15.0 | Introduced. |