[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)





/wp-includes/block-supports/ -> layout.php (summary)

Layout block support flag.

File Size: 244 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions


Functions that are not part of a class:

wp_register_layout_support( $block_type )   X-Ref
Registers the layout block attribute for block types that support it.

param: WP_Block_Type $block_type Block Type.

wp_get_layout_style( $selector, $layout, $has_block_gap_support = false, $gap_value = null )   X-Ref
Generates the CSS corresponding to the provided layout.

param: string $selector              CSS selector.
param: array  $layout                Layout object. The one that is passed has already checked
param: bool   $has_block_gap_support Whether the theme has support for the block gap.
param: string $gap_value             The block gap value to apply.
return: string CSS style.

wp_render_layout_support_flag( $block_content, $block )   X-Ref
Renders the layout config to the block wrapper.

param: string $block_content Rendered block content.
param: array  $block         Block object.
return: string Filtered block content.

wp_restore_group_inner_container( $block_content, $block )   X-Ref
No description

Generated : Thu Jan 27 08:20:02 2022 Cross-referenced by PHPXref