apply_filters( "llms_is_{$object_type}_favorite", array|false $ret , int $object_id , string $object_type , LLMS_Student $instance )
Filter object favorite boolean value prior to returning.
Description Description
The dynamic portion of this filter, {$object_type}, refers to the Lesson.
Parameters Parameters
- $ret
-
(array|false) Array of favorite data or
falseif no favorite is found. - $object_id
-
(int) WP Post ID of the object to mark/unmark as favorite.
- $object_type
-
(string) The object type, currently only 'lesson'.
- $instance
-
(LLMS_Student) The Student Instance
Source Source
Changelog Changelog
| Version | Description |
|---|---|
| 7.5.0 | Introduced. |