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


(int) (Required) User ID.


(int) (Required) Lesson ID.


(string) (Optional) trigger description string.

Default value: ''


(array) (Optional) arguments.

Default value: array()

Top ↑

Return Return


Top ↑

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 );



Top ↑

Changelog Changelog

Version Description
3.29.0 Unknown.
3.17.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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