mirror of
git://develop.git.wordpress.org/
synced 2025-04-13 00:22:52 +02:00
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:
parent
dd9bca79bb
commit
04cd9e2db2
@ -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 ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user