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()
Return Return
(boolean)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.29.0 | Introduced. |