LLMS_REST_Instructors_Controller::get_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-instructors-controller.php

97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
public function get_collection_params() {
 
    $params = parent::get_collection_params();
 
    $params['post_in'] = array(
        'description' => __( 'Retrieve only instructors for the specified course(s) and/or membership(s). Accepts a single WP Post ID or a comma separated list of IDs.', 'lifterlms' ),
        'type'        => 'array',
        'items'       => array(
            'type' => 'integer',
        ),
    );
 
    $params['post_not_in'] = array(
        'description' => __( 'Exclude instructors who do not have permissions for the specified course(s) and/or membership(s). Accepts a single WP Post ID or a comma separated list of IDs.', 'lifterlms' ),
        'type'        => 'array',
        'items'       => array(
            'type' => 'integer',
        ),
    );
 
    return $params;
 
}


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.