WP_Theme_JSON_Resolver::theme_has_support()public staticWP 5.8.0

Устарела с версии 6.2.0. Больше не поддерживается и может быть удалена. Используйте wp_theme_has_theme_json().

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

Метод класса: WP_Theme_JSON_Resolver{}

Хуков нет.

Возвращает

true|false.

Использование

$result = WP_Theme_JSON_Resolver::theme_has_support();

Список изменений

С версии 5.8.0 Введена.
С версии 5.9.0 Added a check in the parent theme.
Устарела с 6.2.0 Use wp_theme_has_theme_json() instead.

Код WP_Theme_JSON_Resolver::theme_has_support() WP 6.5.2

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

	return wp_theme_has_theme_json();
}