LLMS_REST_Lessons_Controller::build_collection_params()

Retrieves the query params for the objects collection.


Return Return

(array) Collection parameters.


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-lessons-controller.php

500
501
502
503
504
505
506
507
508
509
510
511
512
*
 * @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',


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.