Automattic\WooCommerce\Blocks\Templates

AbstractTemplateCompatibility::update_render_block_data()publicWC 1.0

Update the render block data to inject our custom attribute needed to determine which blocks belong to an inherited Products block.

Метод класса: AbstractTemplateCompatibility{}

Хуков нет.

Возвращает

Массив.

Использование

$AbstractTemplateCompatibility = new AbstractTemplateCompatibility();
$AbstractTemplateCompatibility->update_render_block_data( $parsed_block, $source_block, $parent_block );
$parsed_block(массив) (обязательный)
The block being rendered.
$source_block(массив) (обязательный)
An un-modified copy of $parsed_block, as it appeared in the source content.
$parent_block(WP_Block|null) (обязательный)
If this is a nested block, a reference to the parent block.

Код AbstractTemplateCompatibility::update_render_block_data() WC 9.3.3

abstract public function update_render_block_data( $parsed_block, $source_block, $parent_block );