Automattic\WooCommerce\Blocks\BlockTypes
SavedForLater::get_block_type_style
Get the frontend style handle for this block type.
Returning null lets WP use the style array from block.json, which lists this block's own stylesheet plus the product element product-image / product-price / product-button stylesheets we borrow class names from. We can't render those product element blocks as inner blocks (they rely on WP_Query / $post loop context, which this block doesn't have — it hydrates from a Store API call), so declaring them as style dependencies is the only way to get WP to enqueue their CSS whenever Saved for Later renders.
Метод класса: SavedForLater{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_block_type_style();
Код SavedForLater::get_block_type_style() SavedForLater::get block type style WC 11.3.0
protected function get_block_type_style() {
return null;
}