LLMS_REST_Access_Plans_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/server/class-llms-rest-access-plans-controller.php
} // Filter by post ID. if ( ! empty( $request['post_id'] ) ) { $query_args = array_merge( $query_args, array( 'meta_query' => array( array( 'key' => '_llms_product_id', 'value' => $request['post_id'], 'compare' => 'IN', ), ), ) ); } return $query_args; } /** * Prepares a single post for create or update * * @since 1.0.0-beta.18
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.18 | Introduced. |