wp_interactivity_process_directives_of_interactive_blocks()WP 6.5.0

Устарела с версии 6.6.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Processes the directives on the rendered HTML of the interactive blocks.

This processes only one root interactive block at a time because the rendered HTML of that block contains the rendered HTML of all its inner blocks, including any interactive block. It does so by ignoring all the interactive inner blocks until the root interactive block is processed.

Хуков нет.

Возвращает

Массив. The same parsed block.

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

wp_interactivity_process_directives_of_interactive_blocks( $parsed_block ): array;
$parsed_block(массив) (обязательный)
The parsed block.

Список изменений

С версии 6.5.0 Введена.
Устарела с 6.6.0

Код wp_interactivity_process_directives_of_interactive_blocks() WP 6.7.1

function wp_interactivity_process_directives_of_interactive_blocks( array $parsed_block ): array {
	_deprecated_function( __FUNCTION__, '6.6.0' );
	return $parsed_block;
}