interactivity_process_directives filter-hookWP 6.6.0

Filters whether Interactivity API should process directives.

Usage

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.

Changelog

Since 6.6.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.