This function has been deprecated. Use learndash_is_quiz_accessable instead.
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 #
Replaced by learndash_is_quiz_accessable in 3.4.0.
Parameters #
- $user_id
-
(int|null) (Optional) User ID.
Default value: null
- $post
-
(WP_Post|null) (Optional) The
WP_Postquiz object.Default value: null
- $course_id
-
(int) (Optional) Course ID. Default 0.
Return #
(int) Returns 1 if the quiz is accessible by the user otherwise 0.
Source #
Changelog #
| Version | Description |
|---|---|
| 5.0.0 | Use learndash_is_quiz_accessable instead. |
| 2.4.0 | Introduced. This function has been deprecated. Use learndash_is_quiz_accessable instead. |