interactivity_process_directives
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
interactivity_process_directives
wp-includes/class-wp-block.php 517
$interactivity_process_directives_enabled = apply_filters( 'interactivity_process_directives', true );