LLMS_REST_Lessons_Controller::build_collection_params()
Retrieves the query params for the objects collection.
Return Return
(array) Collection parameters.
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-lessons-controller.php
* * @since 1.0.0-beta.1 * * @return array Collection parameters. */ public function build_collection_params() { $query_params = parent::get_collection_params(); $query_params['parent'] = array( 'description' => __( 'Filter lessons by the parent post (section) ID.', 'lifterlms' ), 'type' => 'integer', 'validate_callback' => 'rest_validate_request_arg',
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |