LLMS_Course::get_available_points()
Retrieve the total points available for the course
Return Return
(int)
Source Source
File: includes/models/model.llms.course.php
public function get_available_points() { $points = 0; foreach ( $this->get_lessons() as $lesson ) { $points += $lesson->get( 'points' ); } /** * Filters the total available points for the course. * * @since 3.24.0 * * @param int $points Number of available points. * @param LLMS_Course $course Course object. */ return apply_filters( 'llms_course_get_available_points', $points, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.24.0 | Introduced. |