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.


Top ↑

Parameters Parameters

$ret

(array|false) Array of favorite data or false if 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


Top ↑

Source Source

File: includes/models/model.llms.student.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
7.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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