LLMS_REST_Courses_Controller::get_course_content_collection_params()
Retrieves the query params for the sections objects collection.
Return Return
(array) Collection parameters.
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-courses-controller.php
public function get_course_content_collection_params() { $query_params = $this->sections_controller->get_collection_params(); $query_params['orderby']['enum'] = array( 'order', 'id', 'title', ); $query_params['orderby']['default'] = 'order'; unset( $query_params['parent'] ); return $query_params; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |