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.
Метод класса: BlockTypesController{}
Хуков нет.
Возвращает
Массив
. Array of block types.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_widget_area_block_types();
Код BlockTypesController::get_widget_area_block_types() BlockTypesController::get widget area block types WC 9.7.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', ); }