WP_Theme_JSON_Resolver::theme_has_support()
Deprecated from version 6.2.0. It is no longer supported and can be removed in future releases. Use wp_theme_has_theme_json() instead.
Determines whether the active theme has a theme.json file.
Method of the class: WP_Theme_JSON_Resolver{}
No Hooks.
Return
true|false
.
Usage
$result = WP_Theme_JSON_Resolver::theme_has_support();
Changelog
Since 5.8.0 | Introduced. |
Since 5.9.0 | Added a check in the parent theme. |
Deprecated since 6.2.0 | Use wp_theme_has_theme_json() instead. |
WP_Theme_JSON_Resolver::theme_has_support() WP Theme JSON Resolver::theme has support code WP 6.7.2
public static function theme_has_support() { _deprecated_function( __METHOD__, '6.2.0', 'wp_theme_has_theme_json()' ); return wp_theme_has_theme_json(); }