[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Position block support flag.

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

Defines 2 functions

  wp_register_position_support()
  wp_render_position_support()

Functions
Functions that are not part of a class:

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

param: WP_Block_Type $block_type Block Type.

wp_render_position_support( $block_content, $block )   X-Ref
Renders position styles to the block wrapper.

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



Generated : Tue Jun 25 08:20:01 2024 Cross-referenced by PHPXref