wpseek.com
WordPress开发者和主题制作者的搜索引擎



block_editor_rest_api_preload_paths › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'block_editor_rest_api_preload_paths', $preload_paths, $block_editor_context )
参数: (2)
  • ((string|string[])[]) $preload_paths Array of paths to preload.
    Required: Yes
  • (WP_Block_Editor_Context) $block_editor_context The current block editor context.
    Required: Yes
定义在:
文档:

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





源码

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