should_load_separate_core_block_assets WordPress Filter Hook
The should_load_separate_core_block_assets hook is used to determine whether or not to load separate assets for the core blocks. This can be useful for performance or debugging purposes.
apply_filters( 'should_load_separate_core_block_assets', bool $load_separate_assets ) #
Filters whether block styles should be loaded separately.
Description
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.
Parameters
- $load_separate_assets
(bool)Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
Source
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |