[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Elements styles block support.
File Size: | 139 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
wp_get_elements_class_name( $block ) X-Ref |
Get the elements class names. return: string The unique class name. since: 6.0.0 param: array $block Block object. |
wp_render_elements_support( $block_content, $block ) X-Ref |
Update the block content with elements class names. return: string Filtered block content. since: 5.8.0 param: string $block_content Rendered block content. param: array $block Block object. |
wp_render_elements_support_styles( $pre_render, $block ) X-Ref |
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. return: null since: 6.0.0 param: string|null $pre_render The pre-rendered content. Default null. param: array $block The block being rendered. |
Generated: Mon Oct 7 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |