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



should_load_separate_core_block_assets › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'should_load_separate_core_block_assets', false )
参数:
  • (bool) $load_separate_assets Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
    Required: Yes
定义在:
文档:

Filters whether block styles should be loaded separately.

Returning false loads all core block assets, regardless of whether they are rendered in a page or not. Returning true loads core block assets only when they are rendered.





源码

return apply_filters( 'should_load_separate_core_block_assets', false );