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_assetsbool
Whether separate assets will be loaded. Default false (all block assets are loaded, even when not used).
2657*2658* @since 5.8.02659*2660* @param bool$load_separate_assets Whether separate assets will be loaded.2661*Defaultfalse(all block assets are loaded, even when not used).2662*/2663returnapply_filters('should_load_separate_core_block_assets',false);2664}26652666/**2667* Checks whether block styles should be loaded only on-render.2668*2669* When this function returns true, other functions ensure that blocks only load their assets on-render.
History
Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.