LLMS_Controller_Lesson_Progression::mark_complete( int $user_id, int $lesson_id, string $trigger = '', array $args = array() )
Handle completion of lesson via llms_trigger_lesson_completion
action
Parameters Parameters
- $user_id
-
(int) (Required) User ID.
- $lesson_id
-
(int) (Required) Lesson ID.
- $trigger
-
(string) (Optional) trigger description string.
Default value: ''
- $args
-
(array) (Optional) arguments.
Default value: array()
Return Return
(void)
Source Source
File: includes/controllers/class.llms.controller.lesson.progression.php
public function mark_complete( $user_id, $lesson_id, $trigger = '', $args = array() ) { if ( llms_allow_lesson_completion( $user_id, $lesson_id, $trigger, $args ) ) { llms_mark_complete( $user_id, $lesson_id, 'lesson', $trigger ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.29.0 | Unknown. |
3.17.1 | Introduced. |