Title: should_load_block_editor_scripts_and_styles
Published: December 9, 2020
Last modified: February 24, 2026

---

# apply_filters( ‘should_load_block_editor_scripts_and_styles’, bool $is_block_editor_screen )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#wp--skip-link--target)

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#parameters)󠁿

 `$is_block_editor_screen`bool

Current value of the flag.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/script-loader.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/script-loader.php#L2626)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/script-loader.php#L2626-L2626)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_should_load_block_editor_scripts_and_styles()](https://developer.wordpress.org/reference/functions/wp_should_load_block_editor_scripts_and_styles/)`wp-includes/script-loader.php` |

Checks if the editor scripts and styles for all registered block types should be enqueued on the current screen.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/should_load_block_editor_scripts_and_styles/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.6.0](https://developer.wordpress.org/reference/since/5.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshould_load_block_editor_scripts_and_styles%2F)
before being able to contribute a note or feedback.