WP_Theme_JSON_Resolver::theme_has_support()
Устарела с версии 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 Theme JSON Resolver::theme has support WP 6.4.1
public static function theme_has_support() { _deprecated_function( __METHOD__, '6.2.0', 'wp_theme_has_theme_json()' ); return wp_theme_has_theme_json(); }