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


Top ↑

Return Return

(void)


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

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.