wp_add_parent_layout_to_parsed_block
- %1$s is private and should not be used in themes or plugins directly.
wp_add_parent_layout_to_parsed_block ( $parsed_block, $source_block, $parent_block )
Access:Parameters:- (array) parsed_block The parsed block.
- (array) source_block The source block.
- (WP_Block) parent_block The parent block.
Returns:- (array) The parsed block with parent layout attribute if it exists.
Defined at: - Introduced in WordPress: 6.6.0
- Deprecated in WordPress: —
Description
Check if the parent block exists and if it has a layout attribute.If it does, add the parent layout to the parsed block