Browse: Home / Functions /


is_quiz_accessable_legacy( int|null $user_id = null,  WP_Post|null $post = null,  int $course_id )

Checks if the quiz is accessible to the user (legacy).

Description #

Parameters #


(int|null) (Optional) User ID.

Default value: null


(WP_Post|null) (Optional) The WP_Post quiz object.

Default value: null


(int) (Optional) Course ID. Default 0.

Return #

(int) Returns 1 if the quiz is accessible by the user otherwise 0.

Source #

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