WordPress at Your Fingertips
filter is not described

should_load_block_editor_scripts_and_styles filter-hook . WP 5.6.0

Filters the flag that decides whether or not block editor scripts and styles are going to be enqueued on the current screen.

Usage

add_filter( 'should_load_block_editor_scripts_and_styles', 'filter_function_name_3004' );
function filter_function_name_3004( $is_block_editor_screen ){
	// filter...

	return $is_block_editor_screen;
}
$is_block_editor_screen(true|false)
Current value of the flag.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

wp_should_load_block_editor_scripts_and_styles()
should_load_block_editor_scripts_and_styles
wp-includes/script-loader.php 2347
return apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen );

Where in WP core the hook is used WordPress

wp-includes/class-wp-customize-widgets.php 121
add_filter( 'should_load_block_editor_scripts_and_styles', array( $this, 'should_load_block_editor_scripts_and_styles' ) );