apply_filters( ‘block_editor_rest_api_preload_paths’, (string|string[])[] $preload_paths, WP_Block_Editor_Context $block_editor_context )

In this article

Filters the array of REST API paths that will be used to preloaded common data for the block editor.

Parameters

$preload_paths(string|string[])[]
Array of paths to preload.
$block_editor_contextWP_Block_Editor_Context
The current block editor context.

Source

$preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context );

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.