tec_is_full_site_editor()

Check if the current theme is a block theme.


Return

(bool) Whether the current theme is a block theme supporting full-site editing.


Top ↑

Source

File: src/functions/editor.php

	function tec_is_full_site_editor() {
		if ( function_exists( 'wp_is_block_theme' ) ) {
			return (bool) wp_is_block_theme();
		} else if ( function_exists( 'gutenberg_is_fse_theme' ) ) {
			// This function has returned wp_is_block_theme since 2021/12 so this is just in case someone hasn't updated.
			return (bool) gutenberg_is_fse_theme();
		}

		return false;
	}

Top ↑

Changelog

Changelog
Version Description
4.14.18 Introduced.