WpProQuiz_Controller_Front::ajaxQuizLoadData( $data, mixed $func )
Handles the AJAX request that loads a quiz’s questions, used when the quiz displays a subset of its questions. Restores the in-progress attempt’s questions (recovering answered ones and replacing any that no longer resolve) and returns the encoded quiz data for the front-end.
Description #
Parameters #
-
(<span class="arrayarray<string,) (Required) mixed> $data The AJAX request data (quiz pro ID, quiz post ID, nonce).
- $func
-
(mixed) (Required) The requested function name.
Return #
(string|false|null) JSON-encoded quiz data, false on encoding failure, or null when the quiz or its questions are unavailable.
Source #
File: includes/lib/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Front.php
Changelog #
| Version | Description |
|---|---|
| 1.2.5 | Introduced. |