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 |
|---|---|
| 495 | */ |
| 496 | static $root_interactive_block = null; |
| 497 | /** |
| 498 | * Filters whether Interactivity API should process directives. |
| 499 | * |
| 500 | * @since 6.6.0 |
| 501 | * |
| 502 | * @param bool $enabled Whether the directives processing is enabled. |
| 503 | */ |
| 504 | $interactivity_process_directives_enabled = apply_filters( 'interactivity_process_directives', true ); |
| 505 | if ( |
| 506 | $interactivity_process_directives_enabled && null === $root_interactive_block && ( |
| 507 | ( isset( $this->block_type->supports['interactivity'] ) && true === $this->block_type->supports['interactivity'] ) || |
| 508 | ! empty( $this->block_type->supports['interactivity']['interactive'] ) |
| 509 | ) |
| 510 | ) { |
| 511 | $root_interactive_block = $this; |
| 512 | } |
| 513 | |