learndash_can_user_bypass( int $user_id, string $context = 'learndash_course_progression', array $args = array() )
Check if user can bypass action ($context).
Description Description
Parameters Parameters
- $user_id
-
(Required) User ID.
- $context
-
(Optional) The specific action to check for.
Default value: 'learndash_course_progression'
- $args
-
(Optional) array of args related to the context. Typically starting with an step ID, Course ID, etc.
Default value: array()
Return Return
(bool) True if user can bypass. Otherwise fale.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |