WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

ProductQuery::get_objects() public WC 1.0

Get objects.

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

No Hooks.

Return

Array.

Usage

$ProductQuery = new ProductQuery();
$ProductQuery->get_objects( $request );
$request(\WP_REST_Request) (required)
Request data.

Code of ProductQuery::get_objects() WC 5.8.0

public function get_objects( $request ) {
	$results = $this->get_results( $request );

	return [
		'objects' => array_map( 'wc_get_product', $results['results'] ),
		'total'   => $results['total'],
		'pages'   => $results['pages'],
	];
}