WordPress at Your Fingertips
filter is not described

should_load_separate_core_block_assets filter-hook . WP 5.8.0

Filters whether block styles should be loaded separately.

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.

Usage

add_filter( 'should_load_separate_core_block_assets', 'filter_function_name_3152' );
function filter_function_name_3152( $load_separate_assets ){
	// filter...

	return $load_separate_assets;
}
$load_separate_assets(true|false)
Whether separate assets will be loaded.
Default: false (all block assets are loaded, even when not used)

Changelog

Since 5.8.0 Introduced.

Where the hook is called

wp_should_load_separate_core_block_assets()
should_load_separate_core_block_assets
wp-includes/script-loader.php 2387
return apply_filters( 'should_load_separate_core_block_assets', false );

Where in WP core the hook is used WordPress

Usage not found.