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



block_editor_preload_paths › WordPress过滤钩子

Since5.0.0
已弃用Use the {@see 'block_editor_rest_api_preload_paths'} filter instead.
› $preload_paths = apply_filters_deprecated( 'block_editor_preload_paths', array( $preload_paths, $selected_post ), '5.8.0', 'block_editor_rest_api_preload_paths' );
参数: (2)
  • () preload_paths Array of paths to preload.
    Required: Yes
  • () selected_post Post being edited.
    Required: Yes
定义在:
文档:

Filters the array of paths that will be preloaded.

Preload common data by specifying an array of REST API paths that will be preloaded.




源码

$preload_paths = apply_filters_deprecated( 'block_editor_preload_paths', array( $preload_paths, $selected_post ), '5.8.0', 'block_editor_rest_api_preload_paths' );