llms_allow_lesson_completion( int $user_id, int $lesson_id, string $trigger = '', array $args = array() )

Determine if lesson completion is allowed for a given user & lesson

Parameters Parameters


(int) (Required) WP User ID.


(int) (Required) WP Post ID of a lesson.


(string) (Optional) trigger description string.

Default value: ''


(array) (Optional) arguments.

Default value: array()

Top ↑

Return Return


Top ↑

Source Source

File: includes/functions/llms-functions-progression.php

function llms_allow_lesson_completion( $user_id, $lesson_id, $trigger = '', $args = array() ) {
	 * @filter llms_allow_lesson_completion
	 * @since 3.17.1
	 * @version 3.17.1
	return apply_filters( 'llms_allow_lesson_completion', true, $user_id, $lesson_id, $trigger, $args );

Top ↑

Changelog Changelog

Version Description
3.29.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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