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


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.