[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Elements styles block support.
File Size: | 232 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
wp_get_elements_class_name( $block ) X-Ref |
Gets the elements class names. return: string The unique class name. param: array $block Block object. |
wp_render_elements_support( $block_content, $block ) X-Ref |
Updates the block content with elements class names. return: string Filtered block content. param: string $block_content Rendered block content. param: array $block Block object. |
wp_render_elements_support_styles( $pre_render, $block ) X-Ref |
Renders 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 param: string|null $pre_render The pre-rendered content. Default null. param: array $block The block being rendered. |
Generated : Thu Apr 25 08:20:02 2024 | Cross-referenced by PHPXref |