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:

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.

Related Functions

use_block_editor_for_post_type, use_block_editor_for_post, get_block_editor_theme_styles, rest_api_loaded, register_rest_field

Top Google Results

User discussions

wpseek mobile