Automattic\WooCommerce\Admin\API
Orders::prepare_objects_query()
Prepare objects query.
Method of the class: Orders{}
No Hooks.
Return
Array
.
Usage
// protected - for code of main (parent) or child class $result = $this->prepare_objects_query( $request );
- $request(WP_REST_Request) (required)
- Full details about the request.
Orders::prepare_objects_query() Orders::prepare objects query code WC 9.3.3
protected function prepare_objects_query( $request ) { $args = parent::prepare_objects_query( $request ); if ( ! empty( $request['number'] ) ) { $args = $this->search_partial_order_number( $request['number'], $args ); } return $args; }