llms_mark_unfavorite( int $user_id, int $object_id, string $object_type )
Mark a lesson as unfavorite.
Contents
Description Description
See also See also
- LLMS_Student->mark_unfavorite()
Parameters Parameters
- $user_id
-
(int) (Required) WP User ID.
- $object_id
-
(int) (Required) WP Post ID of the object to mark/unmark as favorite.
- $object_type
-
(string) (Required) The object type, currently only 'lesson'.
Return Return
(bool)
Source Source
File: includes/functions/llms.functions.person.php
function llms_mark_unfavorite( $user_id, $object_id, $object_type ) {
$student = new LLMS_Student( $user_id );
return $student->mark_unfavorite( $object_id, $object_type );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 7.5.0 | Introduced. |