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. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/should_load_separate_core_block_assets