LLMS_Grades::get_grade( WP_Post|int $post_id, LLMS_Student $student, bool $use_cache = true )
Main grade getter function
Description Description
Uses caching by default and can bypass cache when requested
Parameters Parameters
- $post_id
-
(Required) An instance of WP_Post or a WP Post ID.
- $student
-
(Required) A LLMS_Student object.
- $use_cache
-
(Optional) when true, retrieves from cache if available
Default value: true
Return Return
(float|null)
Source Source
File: includes/class-llms-grades.php
Changelog Changelog
Version | Description |
---|---|
4.4.4 | Don't pass the $use_cache parameter to the calculate_grade() method. |
3.24.0 | Introduced. |