wp_render_elements_support_styles


wp_render_elements_support_styles ( $parsed_block )

Access:
  • private
Parameters:
  • (array) parsed_block The parsed block.
Returns:
  • (array) The same parsed block with elements classname added if appropriate.
Defined at:
Change Log:
  • 6: .
  • 6: .

Description

Render the elements stylesheet and adds elements class name to block as required.In the case of nested blocks we want the parent element styles to be rendered before their descendants. This solves the issue of an element (e.g.: link color) being styled in both the parent and a descendant: we want the descendant style to take priority, and this is done by loading it after, in DOM order.

Related Functions

wp_render_elements_support, wp_enqueue_block_support_styles, wp_render_dimensions_support, wp_render_block_style_variation_support_styles, wp_render_layout_support_flag

Top Google Results

User discussions

wpseek mobile