LLMS_Course::get_available_points()

Retrieve the total points available for the course


Description Description


Return Return

(int)


Top ↑

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' );
		}
		return apply_filters( 'llms_course_get_available_points', $points, $this );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.24.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: