Automattic\WooCommerce\Blocks\BlockTypes
RatingFilter{}
PriceFilter class.
No Hooks.
Usage
$RatingFilter = new RatingFilter(); // use class methods
Methods
- protected get_block_type_script( $key = null )
- protected get_block_type_style()
RatingFilter{} 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' ] ); } }