learndash_get_quiz_id

learndash_get_quiz_id( int $id = null )

Gets the quiz ID from a post ID.


Description #


Parameters #

$id

(int) (Optional) Post ID. Optional. Defaults to the global post object.

Default value: null


Return #

(int|false) Returns Quiz ID if found otherwise false.


Source #

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


Changelog #

Changelog
Version Description
2.6.0 Introduced.