wp_render_block_style_variation_support_styles
- %1$s is private and should not be used in themes or plugins directly.
wp_render_block_style_variation_support_styles ( $parsed_block )
Access:Parameters:- (array) parsed_block The parsed block.
Returns:- (array) The parsed block with block style variation classname added.
Defined at: - Introduced in WordPress: 6.6.0
- Deprecated in WordPress: —
Description
Render the block style variation's styles.In the case of nested blocks with variations applied, we want the parent
variation's styles to be rendered before their descendants. This solves the
issue of a block type being styled in both the parent and descendant: we want
the descendant style to take priority, and this is done by loading it after,
in the DOM order. This is why the variation stylesheet generation is in a
different filter.