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 |
|---|---|
| 684 | |
| 685 | /** |
| 686 | * Filters the array of REST API paths that will be used to preloaded common data for the block editor. |
| 687 | * |
| 688 | * @since 5.8.0 |
| 689 | * |
| 690 | * @param (string|string[])[] $preload_paths Array of paths to preload. |
| 691 | * @param WP_Block_Editor_Context $block_editor_context The current block editor context. |
| 692 | */ |
| 693 | $preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context ); |
| 694 | |
| 695 | if ( ! empty( $block_editor_context->post ) ) { |
| 696 | $selected_post = $block_editor_context->post; |
| 697 | |
| 698 | /** |
| 699 | * Filters the array of paths that will be preloaded. |
| 700 | * |
| 701 | * Preload common data by specifying an array of REST API paths that will be preloaded. |
| 702 | * |