Tribe__Tickets__Editor__Template__Overwrite::has_early_access_to_blocks()

Detect if the Checkbox to have early access to the blocks is enabled


Return

(bool)


Top ↑

Source

File: src/Tribe/Editor/Template/Overwrite.php

	public function has_early_access_to_blocks() {
		try {
			/** @var Tribe__Events__Editor__Compatibility $editor_compatibility */
			$editor_compatibility = tribe( 'events.editor.compatibility' );

			return $editor_compatibility->is_blocks_editor_toggled_on();
		} catch ( Exception $e ) {
			return false;
		}
	}

Top ↑

Changelog

Changelog
Version Description
4.9.2 Introduced.