Automattic\WooCommerce\Blocks\BlockTypes

SavedForLater::get_block_type_style │ protected │ WC 1.0

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 atomic product-image / product-price / product-button stylesheets we borrow class names from. We can't render those atomic 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.

Method of the class: SavedForLater{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->get_block_type_style();

SavedForLater::get_block_type_style() code WC 11.1.2

protected function get_block_type_style() {
	return null;
}