acf_is_block_editor()ACF 5.8.0

Returns true if the current screen is using the block editor.

No Hooks.

Returns

true|false.

Usage

acf_is_block_editor();

Changelog

Since 5.8.0 Introduced.

acf_is_block_editor() code ACF 6.8.8

function acf_is_block_editor() {
	if ( function_exists( 'get_current_screen' ) ) {
		$screen = get_current_screen();
		if ( $screen && method_exists( $screen, 'is_block_editor' ) ) {
			return $screen->is_block_editor();
		}
	}
	return false;
}