WordPress at Your Fingertips
class is not described

Automattic\WooCommerce\Blocks\BlockTypes

ProductTopRated{} WC 1.0

ProductTopRated class.

No Hooks.

Return

null. Nothing.

Usage

$ProductTopRated = new ProductTopRated();
// use class methods

Methods

  1. set_block_query_args( &$query_args )

Code of ProductTopRated{} WC 5.8.0

class ProductTopRated extends AbstractProductGrid {

	/**
	 * Block name.
	 *
	 * @var string
	 */
	protected $block_name = 'product-top-rated';

	/**
	 * Force orderby to rating.
	 *
	 * @param array $query_args Query args.
	 */
	protected function set_block_query_args( &$query_args ) {
		$query_args['orderby'] = 'rating';
	}
}