learndash_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 Description

Replaced by learndash_is_quiz_accessable in 3.4.0.


Parameters Parameters

$user_id

(Optional) User ID.

Default value: null

$post

(Optional) The WP_Post quiz object.

Default value: null

$course_id

(Optional) Course ID. Default 0.


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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