WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

OnboardingProfile::prepare_objects_query() protected WC 1.0

Prepare objects query.

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

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_objects_query( $params );
$params(array) (required)
The params sent in the request.

Code of OnboardingProfile::prepare_objects_query() WC 5.3.0

<?php
protected function prepare_objects_query( $params ) {
	$args       = array();
	$properties = self::get_profile_properties();

	foreach ( $properties as $key => $property ) {
		if ( isset( $params[ $key ] ) ) {
			$args[ $key ] = $params[ $key ];
		}
	}

	/**
	 * Filter the query arguments for a request.
	 *
	 * Enables adding extra arguments or setting defaults for a post
	 * collection request.
	 *
	 * @param array $args    Key value array of query var to query value.
	 * @param array $params The params sent in the request.
	 */
	$args = apply_filters( 'woocommerce_rest_onboarding_profile_object_query', $args, $params );

	return $args;
}