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_course_grade( LLMS_Course $course, LLMS_Student $student )

Calculate the grade for a course

Parameters Parameters


(LLMS_Course) (Required) A LLMS_Course object.


(LLMS_Student) (Required) A LLMS_Student object.

Top ↑

Return Return


Top ↑

Source Source

File: includes/class-llms-grades.php


	 * Main grade calculation function
	 * Calculates the grade for a gradable post model
	 * See get_grade() for a function which uses caching
	 * @param    LLMS_Post_Model $post    A LLMS_Post_Model object.
	 * @param    LLMS_Student    $student A LLMS_Student object.

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.