LLMS_REST_Sections_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-sections-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 sections by the parent post (course) 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. |