WP_Screen::is_block_editor

SummerySummery

Sets or returns whether the block editor is loading on the current screen.

Syntax

WP_Screen::is_block_editor( bool $set = null )

ParametersParameters

$set

(bool) (Optional) Sets whether the block editor is loading on the current screen or not.

Default value: null

ReturnReturn

(bool) True if the block editor is being loaded, false otherwise.

SourceSource

File: wp-admin/includes/class-wp-screen.php


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top