block_editor_rest_api_preload
block_editor_rest_api_preload ( $preload_paths, $block_editor_context )
Parameters:- ((string|string[])[]) preload_paths List of paths to preload.
- (WP_Block_Editor_Context) block_editor_context The current block editor context.
Defined at: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
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.