block_editor_preload_paths filter-hook . WP 5.0.0
Preload common data by specifying an array of REST API paths that will be preloaded.
Filters the array of paths that will be preloaded.
Usage
add_filter( 'block_editor_preload_paths', 'filter_function_name_2398', 10, 2 ); function filter_function_name_2398( $preload_paths, $post ){ // filter... return $preload_paths; }
- $preload_paths(string[])
- Array of paths to preload.
- $post(WP_Post)
- Post being edited.
Changelog
Since 5.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-form-blocks.php
block_editor_preload_paths
wp-admin/edit-form-blocks.php 70
$preload_paths = apply_filters( 'block_editor_preload_paths', $preload_paths, $post );