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

$user_id

(int) (Required) WP User ID.

$lesson_id

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

$trigger

(string) (Optional) trigger description string.

Default value: ''

$args

(array) (Optional) arguments.

Default value: array()


Top ↑

Return Return

(boolean)


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

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.