WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 439 | */ |
| 440 | static $root_interactive_block = null; |
| 441 | /** |
| 442 | * Filters whether Interactivity API should process directives. |
| 443 | * |
| 444 | * @since 6.6.0 |
| 445 | * |
| 446 | * @param bool $enabled Whether the directives processing is enabled. |
| 447 | */ |
| 448 | $interactivity_process_directives_enabled = apply_filters( 'interactivity_process_directives', true ); |
| 449 | if ( |
| 450 | $interactivity_process_directives_enabled && null === $root_interactive_block && ( |
| 451 | ( isset( $this->block_type->supports['interactivity'] ) && true === $this->block_type->supports['interactivity'] ) || |
| 452 | ! empty( $this->block_type->supports['interactivity']['interactive'] ) |
| 453 | ) |
| 454 | ) { |
| 455 | $root_interactive_block = $this; |
| 456 | } |
| 457 | |