learndash_can_user_bypass

learndash_can_user_bypass( int $user_id,  string $context = 'learndash_course_progression',  array $args = array() )

Check if user can bypass action ($context).


Description #


Parameters #

$user_id

(int) (Required) User ID.

$context

(string) (Optional) The specific action to check for.

Default value: 'learndash_course_progression'

$args

(array) (Optional) array of args related to the context. Typically starting with an step ID, Course ID, etc.

Default value: array()


Return #

(bool) True if user can bypass. Otherwise fale.


Source #

File: includes/course/ld-course-functions.php


Changelog #

Changelog
Version Description
3.1.7 Introduced.