LLMS_REST_API_Keys_Controller::prepare_collection_query_args( WP_REST_Request $request )
Format query arguments from a collection GET request to be passed to a LLMS_REST_API_Keys_Query
Parameters Parameters
- $request
-
(WP_REST_Request) (Required) Request object.
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-api-keys-controller.php
$request->set_param( 'context', 'edit' ); $response = $this->prepare_item_for_response( $key, $request ); return $response; } /** * Format query arguments from a collection GET request to be passed to a LLMS_REST_API_Keys_Query * * @since 1.0.0-beta.1 * * @param WP_REST_Request $request Request object. * @return array */ protected function prepare_collection_query_args( $request ) { $args = array(); $params = $this->get_collection_params(); foreach ( array_keys( $params ) as $param ) { if ( ! isset( $request[ $param ] ) || in_array( $param, array( 'order', 'orderby' ), true ) ) { continue; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |