should_load_block_editor_scripts_and_styles хук-фильтр . 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.
Использование
add_filter( 'should_load_block_editor_scripts_and_styles', 'filter_function_name_6052' ); function filter_function_name_6052( $is_block_editor_screen ){ // filter... return $is_block_editor_screen; }
- $is_block_editor_screen(true/false)
- Current value of the flag.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
should_load_block_editor_scripts_and_styles
wp-includes/script-loader.php 2212
return apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen );