[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)





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

Background block support flag.

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

Defines 2 functions


Functions that are not part of a class:

wp_register_background_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_background_support( $block_content, $block )   X-Ref
Renders the background styles to the block wrapper.
This block support uses the `render_block` hook to ensure that
it is also applied to non-server-rendered blocks.

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

Generated : Mon Jul 15 08:20:02 2024 Cross-referenced by PHPXref