block_editor_rest_api_preload


block_editor_rest_api_preload ( $preload_paths, $block_editor_context )

Parameters:
  • (string[]) preload_paths List of paths to preload.
  • (WP_Block_Editor_Context) block_editor_context The current block editor context.
Returns:
  • (void)
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, rest_api_loaded, get_block_editor_theme_styles, register_rest_field

Top Google Results

User discussions

wpseek mobile