wp_render_block_style_variation_support_styles


wp_render_block_style_variation_support_styles ( $parsed_block )

Access:
  • private
Parameters:
  • (array) parsed_block The parsed block.
Returns:
  • (array) The parsed block with block style variation classname added.
Defined at:

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.

Related Functions

wp_enqueue_block_style_variation_styles, wp_render_block_style_variation_class_name, wp_resolve_block_style_variation_ref_values, wp_render_elements_support_styles, wp_create_block_style_variation_instance_name

Top Google Results

User discussions

wpseek mobile