[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Layout block support flag.
File Size: | 314 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
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. since: 5.8.0 |
wp_get_layout_style( $selector, $layout, $has_block_gap_support = false, $gap_value = null, $should_skip_gap_serialization = false ) X-Ref |
Generates the CSS corresponding to the provided layout. return: string CSS style. param: string $selector CSS selector. param: array $layout Layout object. The one that is passed has already checked param: boolean $has_block_gap_support Whether the theme has support for the block gap. param: string $gap_value The block gap value to apply. param: boolean $should_skip_gap_serialization Whether to skip applying the user-defined value set in the editor. since: 5.9.0 |
wp_render_layout_support_flag( $block_content, $block ) X-Ref |
Renders the layout config to the block wrapper. return: string Filtered block content. param: string $block_content Rendered block content. param: array $block Block object. since: 5.8.0 |
wp_restore_group_inner_container( $block_content, $block ) X-Ref |
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. return: string Filtered block content. param: string $block_content Rendered block content. param: array $block Block object. since: 5.8.0 |
wp_restore_image_outer_container( $block_content, $block ) X-Ref |
No description |
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |