W3cubDocs

/WordPress

WP_Theme_JSON_Resolver::theme_has_support(): bool

Determines whether the active theme has a theme.json file.

Return

bool

Source

public static function theme_has_support() {
	_deprecated_function( __METHOD__, '6.2.0', 'wp_theme_has_theme_json()' );

	return wp_theme_has_theme_json();
}

Changelog

Version Description
6.2.0 Use wp_theme_has_theme_json() instead.
5.9.0 Added a check in the parent theme.
5.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/theme_has_support