Filters the array of paths that will be preloaded.
Preload common data by specifying an array of REST API paths that will be preloaded.
$preload_paths(string|string[])[]
$selected_postWP_Post
$preload_paths = apply_filters_deprecated( 'block_editor_preload_paths', array( $preload_paths, $selected_post ), '5.8.0', 'block_editor_rest_api_preload_paths' );
| Version | Description |
|---|---|
| 5.8.0 | Use the 'block_editor_rest_api_preload_paths' filter instead. |
| 5.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_editor_preload_paths