WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

ProductVariations::prepare_objects_query() protected WC 1.0

Add product name and sku filtering to the WC API.

{} It's a method of the class: ProductVariations{}

No Hooks.

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_objects_query( $request );
$request(WP_REST_Request) (required)
Request data.

Code of ProductVariations::prepare_objects_query() WC 5.3.0

<?php
protected function prepare_objects_query( $request ) {
	$args = parent::prepare_objects_query( $request );

	if ( ! empty( $request['search'] ) ) {
		$args['search'] = $request['search'];
		unset( $args['s'] );
	}

	// Retreive variations without specifying a parent product.
	if ( "/{$this->namespace}/variations" === $request->get_route() ) {
		unset( $args['post_parent'] );
	}

	return $args;
}