llms_mark_favorite( int $user_id, int $object_id, string $object_type )

Mark an object as favorite.


Description Description

See also See also


Top ↑

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'.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/functions/llms.functions.person.php

function llms_mark_favorite( $user_id, $object_id, $object_type ) {
	$student = new LLMS_Student( $user_id );
	return $student->mark_favorite( $object_id, $object_type );
}


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.