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::get_grade_from_cache( obj $post, obj $student )
Retrieve a grade from the wp_cache
Description Description
Parameters Parameters
- $post
-
(obj) (Required) LLMS_Post_Model
- $student
-
(obj) (Required) LLMS_Student
Return Return
(mixed) grade as a float null if there's no grade for the post false if the grade wasn't found in the cache
Source Source
File: includes/class-llms-grades.php
private function get_grade_from_cache( $post, $student ) { return wp_cache_get( sprintf( '%d_grade', $post->get( 'id' ) ), sprintf( 'student_%d', $student->get( 'id' ) ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.24.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: