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).
2703*2704* @since 5.8.02705*2706* @param bool$load_separate_assets Whether separate assets will be loaded.2707*Defaultfalse(all block assets are loaded, even when not used).2708*/2709returnapply_filters('should_load_separate_core_block_assets',false);2710}27112712/**2713* Checks whether block styles should be loaded only on-render.2714*2715* 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.