Automattic\WooCommerce\Blocks
BlockTypesController::get_widget_area_block_types
Get list of block types allowed in Widget Areas. New blocks won't be exposed in the Widget Area unless specifically added here.
Method of the class: BlockTypesController{}
No Hooks.
Returns
Array. Array of block types.
Usage
// protected - for code of main (parent) or child class $result = $this->get_widget_area_block_types();
BlockTypesController::get_widget_area_block_types() BlockTypesController::get widget area block types code WC 10.7.0
protected function get_widget_area_block_types() {
return array(
'AllReviews',
'Breadcrumbs',
'CartLink',
'CatalogSorting',
'ClassicShortcode',
'CustomerAccount',
'FeaturedCategory',
'FeaturedProduct',
'MiniCart',
'ProductCategories',
'ProductResultsCount',
'ProductSearch',
'ReviewsByCategory',
'ReviewsByProduct',
'ProductFilters',
'ProductFilterStatus',
'ProductFilterPrice',
'ProductFilterPriceSlider',
'ProductFilterAttribute',
'ProductFilterRating',
'ProductFilterActive',
'ProductFilterRemovableChips',
'ProductFilterClearButton',
'ProductFilterCheckboxList',
'ProductFilterChips',
'ProductFilterTaxonomy',
// Keep hidden legacy filter blocks for backward compatibility.
'ActiveFilters',
'AttributeFilter',
'FilterWrapper',
'PriceFilter',
'RatingFilter',
'StockFilter',
// End: legacy filter blocks.
// Below product grids are hidden from inserter however they could have been used in widgets.
// Keep them for backward compatibility.
'HandpickedProducts',
'ProductBestSellers',
'ProductNew',
'ProductOnSale',
'ProductTopRated',
'ProductsByAttribute',
'ProductCategory',
'ProductTag',
// End: legacy product grids blocks.
);
}