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).
2624*2625* @since 5.8.02626*2627* @param bool$load_separate_assets Whether separate assets will be loaded.2628*Defaultfalse(all block assets are loaded, even when not used).2629*/2630returnapply_filters('should_load_separate_core_block_assets',false);2631}26322633/**2634* Checks whether block styles should be loaded only on-render.2635*2636* 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.