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).
2714*2715* @since 5.8.02716*2717* @param bool$load_separate_assets Whether separate assets will be loaded.2718*Defaultfalse(all block assets are loaded, even when not used).2719*/2720returnapply_filters('should_load_separate_core_block_assets',false);2721}27222723/**2724* Checks whether block styles should be loaded only on-render.2725*2726* 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.