interactivity_process_directives хук-фильтрWP 6.6.0

Filters whether Interactivity API should process directives.

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

add_filter( 'interactivity_process_directives', 'wp_kama_interactivity_process_directives_filter' );

/**
 * Function for `interactivity_process_directives` filter-hook.
 * 
 * @param bool $enabled Whether the directives processing is enabled.
 *
 * @return bool
 */
function wp_kama_interactivity_process_directives_filter( $enabled ){

	// filter...
	return $enabled;
}
$enabled(true|false)
Whether the directives processing is enabled.

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

С версии 6.6.0 Введена.

Где вызывается хук

WP_Block::render()
interactivity_process_directives
wp-includes/class-wp-block.php 466
$interactivity_process_directives_enabled = apply_filters( 'interactivity_process_directives', true );

Где используется хук в WordPress

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