should_load_block_editor_scripts_and_styles WordPress Filter Hook
The should_load_block_editor_scripts_and_styles hook is a WordPress hook that allows you to conditionally load Block Editor scripts and styles. This hook is useful if you want to load Block Editor scripts and styles only on certain pages or if you want to load them conditionally based on some other criteria.
apply_filters( 'should_load_block_editor_scripts_and_styles', bool $is_block_editor_screen ) #
Filters the flag that decides whether or not block editor scripts and styles are going to be enqueued on the current screen.
Parameters
- $is_block_editor_screen
(bool)Current value of the flag.
Source
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |