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 |
|---|---|
| 508 | */ |
| 509 | static $root_interactive_block = null; |
| 510 | /** |
| 511 | * Filters whether Interactivity API should process directives. |
| 512 | * |
| 513 | * @since 6.6.0 |
| 514 | * |
| 515 | * @param bool $enabled Whether the directives processing is enabled. |
| 516 | */ |
| 517 | $interactivity_process_directives_enabled = apply_filters( 'interactivity_process_directives', true ); |
| 518 | if ( |
| 519 | $interactivity_process_directives_enabled && null === $root_interactive_block && ( |
| 520 | ( isset( $this->block_type->supports['interactivity'] ) && true === $this->block_type->supports['interactivity'] ) || |
| 521 | ! empty( $this->block_type->supports['interactivity']['interactive'] ) |
| 522 | ) |
| 523 | ) { |
| 524 | $root_interactive_block = $this; |
| 525 | } |
| 526 | |