wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/block-supports/layout.php › WordPress File
Functions7
› Layout block support flag.
Function | Short description |
---|---|
wp_add_parent_layout_to_parsed_block | Check if the parent block exists and if it has a layout attribute. |
wp_get_layout_definitions | Returns layout definitions, keyed by layout type. |
wp_get_layout_style | Generates the CSS corresponding to the provided layout. |
wp_register_layout_support | Registers the layout block attribute for block types that support it. |
wp_render_layout_support_flag | Renders the layout config to the block wrapper. |
wp_restore_group_inner_container | For themes without theme.json file, make sure to restore the inner div for the group block to avoid breaking styles relying on that div. |
wp_restore_image_outer_container | For themes without theme.json file, make sure to restore the outer div for the aligned image block to avoid breaking styles relying on that div. |