LLMS_REST_Controller_Stubs::get_objects_query( array $prepared, WP_REST_Request $request )
Retrieve a query object based on arguments from a get_items()
(collection) request.
Parameters Parameters
- $prepared
-
(array) (Required) Array of collection arguments.
- $request
-
(WP_REST_Request) (Required) Request object.
Return Return
(object)
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-controller-stubs.php
protected function get_objects_query( $prepared, $request ) { // Translators: %s = method name. _doing_it_wrong( 'LLMS_REST_Controller::get_objects_query', sprintf( __( "Method '%s' must be overridden.", 'lifterlms' ), __METHOD__ ), '1.0.0-beta.1' ); // For example. return new WP_Query( $prepared ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |