Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Grades::calculate_lesson_grade( LLMS_Lesson $lesson, LLMS_Student $student )

Calculates the grade for a lesson

Parameters Parameters


(LLMS_Lesson) (Required) A LLMS_Lesson object.


(LLMS_Student) (Required) A LLMS_Student object.

Top ↑

Return Return


Top ↑

Source Source

File: includes/class-llms-grades.php

		return apply_filters( 'llms_calculate_lesson_grade', $grade, $lesson, $student );


	 * Main grade getter function
	 * Uses caching by default and can bypass cache when requested
	 * @since 3.24.0
	 * @since 4.4.4 Don't pass the `$use_cache` parameter to the `calculate_grade()` method.

Top ↑

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.