[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Layout block support flag.

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

Defines 4 functions

  wp_register_layout_support()
  wp_get_layout_style()
  wp_render_layout_support_flag()
  wp_restore_group_inner_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.

since: 5.8.0
param: WP_Block_Type $block_type Block Type.

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

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

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

since: 5.8.0
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: Mon Dec 6 01:00:03 2021 Cross-referenced by PHPXref 0.7.1