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

Check if user can bypass action ($context).

Description #

Parameters #


(int) (Required) User ID.


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

Default value: 'learndash_course_progression'


(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 #

Version Description
3.1.7 Introduced.