llms_is_quiz_accessible( int $post_id, int|null $user_id = null )

Determine if a quiz should be accessible by a user.


Description Description


Parameters Parameters

$post_id

(Required) WP Post ID.

$user_id

(Optional) WP User ID (will use get_current_user_id() if none supplied). Default null.

Default value: null


Top ↑

Return Return

(bool|int) If the post is not restricted returns false. If the post is restricted, returns the quiz id.


Top ↑

Source Source

File: includes/functions/llms.functions.access.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.16.1 Unknown.
3.1.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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