wpseek.com
A WordPress-centric search engine for devs and theme authors



should_load_separate_core_block_assets › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'should_load_separate_core_block_assets', false )
Parameters:
  • (bool) $load_separate_assets Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
    Required: Yes
Defined at:
Codex:

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.





Source

return apply_filters( 'should_load_separate_core_block_assets', false );