On this page
apply_filters( 'block_editor_rest_api_preload_paths', string[] $preload_paths, WP_Block_Editor_Context $block_editor_context )
Filters the array of REST API paths that will be used to preloaded common data for the block editor.
Parameters
$preload_pathsstring[]-
Array of paths to preload.
$block_editor_contextWP_Block_Editor_Context-
The current block editor context.
Source
File: wp-includes/block-editor.php. View all references
$preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context );
Related
Used By
| Used By | Description |
|---|---|
| block_editor_rest_api_preload() wp-includes/block-editor.php | Preloads common data used with the block editor by specifying an array of REST API paths that will be preloaded for a given block editor context. |
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_editor_rest_api_preload_paths