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.
Return
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 9.8.1
protected function get_widget_area_block_types() { return array( 'ActiveFilters', 'AllReviews', 'AttributeFilter', 'Breadcrumbs', 'CartLink', 'CatalogSorting', 'ClassicShortcode', 'CustomerAccount', 'FeaturedCategory', 'FeaturedProduct', 'FilterWrapper', 'MiniCart', 'PriceFilter', 'ProductCategories', 'ProductResultsCount', 'ProductSearch', 'RatingFilter', 'ReviewsByCategory', 'ReviewsByProduct', 'StockFilter', // 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', ); }