LLMS_REST_Posts_Controller::prepare_collection_query_args( WP_REST_Request $request )
Format query arguments to retrieve a collection of objects.
Parameters Parameters
- $request
-
(WP_REST_Request) (Required) Full details about the request.
Return Return
(array|WP_Error)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php
'sanitize_callback' => array( $this, 'sanitize_post_statuses' ), ); } return $query_params; } /** * Format query arguments to retrieve a collection of objects. * * @since 1.0.0-beta.7 * @since 1.0.0-beta.12 Moved parameters to query args mapping into a different method. * @since 1.0.0-beta.18 Correctly return errors. *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.7 | |
1.0.0-beta.18 | Correctly return errors. |
1.0.0-beta.12 | Introduced. |