WP_Customize_Widgets::should_load_block_editor_scripts_and_styles( bool $is_block_editor_screen )

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


Parameters Parameters

$is_block_editor_screen

(bool) (Required) Current decision about loading block assets.


Top ↑

Return Return

(bool) Filtered decision about loading block assets.


Top ↑

Source Source

File: wp-includes/class-wp-customize-widgets.php

	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;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.