wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/block-supports/layout.php › WordPress File
Functions12
› 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_block_style_variation_name_from_registered_style | Gets the first style variation name from a className string that matches a registered style. |
| wp_get_child_layout_style_rules | Returns child layout styles for a block affected by its parent's layout. |
| wp_get_layout_child_values | Returns the child-layout-only subset of a layout object. |
| wp_get_layout_container_values | Returns the container-layout subset of a layout object. |
| 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. |
| wp_sanitize_block_gap_value | Sanitizes a block gap value before layout style generation. |