LD_REST_Questions_Controller_V1::map_parameters_to_validation( WpProQuiz_Model_Question $question, array $parameters )
Maps the API parameters to the format that can be used for validation.
Description #
If a needed parameter is not received, the function will use the current question data.
Parameters #
- $question
-
(WpProQuiz_Model_Question) (Required) The question model.
- $parameters
-
(<span class="array">array) (Required) The API parameters.
Return #
(array<mixed>) The mapped parameters.
Source #
File: includes/rest-api/v1/class-ld-rest-questions-controller.php
Changelog #
Version | Description |
---|---|
4.14.0 | Introduced. |