WP_Customize_Widgets::should_load_block_editor_scripts_and_styles() – Tells the script loader to load the scripts and styles of custom blocks if the widgets block editor is enabled.

You appear to be a bot. Output may be restricted

Description

Tells the script loader to load the scripts and styles of custom blocks if the widgets block editor is enabled.

Usage

$bool = WP_Customize_Widgets::should_load_block_editor_scripts_and_styles( $is_block_editor_screen );

Parameters

$is_block_editor_screen
( bool ) required – Current decision about loading block assets.

Returns

bool Filtered decision about loading block assets.

Source

File name: wordpress/wp-includes/class-wp-customize-widgets.php
Lines:

1 to 7 of 7
  public function should_load_block_editor_scripts_and_styles( $is_block_editor_screen ) {
    if ( wp_use_widgets_block_editor() ) {
      return true;
    }

    return $is_block_editor_screen;
  }
 

 View on GitHub View on Trac