WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

ProductTopRated::set_block_query_args() protected WC 1.0

Force orderby to rating.

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

No Hooks.

Return

Null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->set_block_query_args( $query_args );
$query_args(array) (required) (passed by reference — &)
Query args.

Code of ProductTopRated::set_block_query_args() WC 5.0.0

<?php
protected function set_block_query_args( &$query_args ) {
	$query_args['orderby'] = 'rating';
}