wp_render_elements_support_styles


wp_render_elements_support_styles ( $pre_render, $block )

Access:
  • private
Parameters:
  • (string|null) pre_render The pre-rendered content. Default null.
  • (array) block The block being rendered.
Returns:
  • (null)
Defined at:

Description

Render the elements stylesheet.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_layout_support_flag, wp_register_alignment_support, wp_render_duotone_support

Top Google Results

User discussions

wpseek mobile