Editor, Docs: Add documentation for the $block_editor_context parameter of the block_editor_rest_api_preload_paths hook.

See #52920.
See #53399.

git-svn-id: https://develop.svn.wordpress.org/trunk@52072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling 2021-11-09 12:58:08 +00:00
parent dd9bca79bb
commit 04cd9e2db2

View File

@ -436,7 +436,8 @@ function block_editor_rest_api_preload( array $preload_paths, $block_editor_cont
*
* @since 5.8.0
*
* @param string[] $preload_paths Array of paths to preload.
* @param string[] $preload_paths Array of paths to preload.
* @param WP_Block_Editor_Context $block_editor_context The current block editor context.
*/
$preload_paths = apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context );
if ( ! empty( $block_editor_context->post ) ) {