LD_REST_Question_Types_Controller_V2
Class LearnDash REST API V2 Question Types Controller.
Description #
Source #
File: includes/rest-api/v2/class-ld-rest-question-types-controller.php
Changelog #
Version | Description |
---|---|
3.3.0 | Introduced. |
Methods #
- __construct — Constructor.
- get_collection_params — Retrieves the query params for collections.
- get_item — Retrieves a specific question type.
- get_item_permissions_check — Checks if a given request has access to read a question type.
- get_item_schema — Retrieves the question type schema, conforming to JSON Schema.
- get_items — Retrieves all question types.
- get_items_permissions_check — Checks whether a given request has permission to read question type.
- get_rest_base — Get the REST URL setting.
- init_types_set — Initialize the types dataset for use within the class.
- prepare_item_for_response — Prepares a question type object for serialization.
- register_routes — Registers the routes for the objects of the controller.