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


Top ↑

Return Return

(float|null)


Top ↑

Source Source

File: includes/class-llms-grades.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.4.4 Don't pass the $use_cache parameter to the calculate_grade() method.
3.24.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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