Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: should_load_block_editor_scripts_and_styles

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
2203
2204      /**
2205       * Filters the flag that decides whether or not block editor scripts and
2206       * styles are going to be enqueued on the current screen.
2207       *
2208       * @since 5.6.0
2209       *
2210       * @param bool $is_block_editor_screen Current value of the flag.
2211       */
2212      return apply_filters( 'should_load_block_editor_scripts_and_styles', $is_block_editor_screen );
2213 }
2214
2215 /**
2216  * Enqueues registered block scripts and styles, depending on current rendered
2217  * context (only enqueuing editor scripts while in context of the editor).
2218  *
2219  * @since 5.0.0
2220  *
2221  * @global WP_Screen $current_screen WordPress current screen object.