Automattic\WooCommerce\Blocks\BlockTypes

RatingFilter{}WC 1.0

PriceFilter class.

No Hooks.

Usage

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

Methods

  1. protected get_block_type_script( $key = null )
  2. protected get_block_type_style()

RatingFilter{} code WC 8.6.1

class RatingFilter extends AbstractBlock {

	/**
	 * Block name.
	 *
	 * @var string
	 */
	protected $block_name  = 'rating-filter';
	const RATING_QUERY_VAR = 'rating_filter';

	/**
	 * Get the frontend script handle for this block type.
	 *
	 * @param string $key Data to get, or default to everything.
	 */
	protected function get_block_type_script( $key = null ) {
		return null;
	}

	/**
	 * Get the frontend style handle for this block type.
	 *
	 * @return string[]
	 */
	protected function get_block_type_style() {
		return array_merge( parent::get_block_type_style(), [ 'wc-blocks-packages-style' ] );
	}
}