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_blockCheck if the parent block exists and if it has a layout attribute.
wp_get_block_style_variation_name_from_registered_styleGets the first style variation name from a className string that matches a registered style.
wp_get_child_layout_style_rulesReturns child layout styles for a block affected by its parent's layout.
wp_get_layout_child_valuesReturns the child-layout-only subset of a layout object.
wp_get_layout_container_valuesReturns the container-layout subset of a layout object.
wp_get_layout_definitionsReturns layout definitions, keyed by layout type.
wp_get_layout_styleGenerates the CSS corresponding to the provided layout.
wp_register_layout_supportRegisters the layout block attribute for block types that support it.
wp_render_layout_support_flagRenders the layout config to the block wrapper.
wp_restore_group_inner_containerFor 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_containerFor 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_valueSanitizes a block gap value before layout style generation.