do_action( "before_llms_mark_{$status}", int $student_id, int $object_id, string $object_type )

Fires before a student’s object favorite status is updated.


Description Description

The dynamic portion of this hook, $status, refers to the new completion status of the object, either "favorite" or "unfavorite".


Top ↑

Parameters Parameters

$student_id

(int) WP_User ID of the student.

$object_id

(int) WP Post ID of the object to mark/unmark as favorite.

$object_type

(string) The object type, currently only 'lesson'.


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.