wp_add_parent_layout_to_parsed_block


wp_add_parent_layout_to_parsed_block ( $parsed_block, $source_block, $parent_block )

Access:
  • private
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:

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

Related Functions

wp_get_layout_style, wp_add_global_styles_for_blocks, wp_add_post_tags, block_core_navigation_mock_parsed_block, wp_get_first_block

Top Google Results

User discussions

wpseek mobile