[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Layout block support flag.

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

Defines 5 functions

  wp_register_layout_support()
  wp_get_layout_style()
  wp_render_layout_support_flag()
  wp_restore_group_inner_container()
  wp_restore_image_outer_container()

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.
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.

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.
return: string CSS style.
since: 5.9.0

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.
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.

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

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



Generated: Thu Apr 18 01:00:02 2024 Cross-referenced by PHPXref 0.7.1