Core Function
View Source on Trac ↗ block_editor_rest_api_preload()
block_editor_rest_api_preload( array $preload_paths, mixed $block_editor_context ) Preloads common data used with the block editor by specifying an array of
Parameters 2 required
| Name / Type | Description |
|---|---|
| (string | | string[])[] $preload_paths List of paths to preload. Required |
| $block_editor_context WP_Block_Editor_Context | The current block editor context. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
5.8.0
Source File
wp-includes/block-editor.php
Advertisement