WP_Theme_JSON_Resolver::theme_has_support()
Whether the current theme has a theme.json file.
Return
(bool)
Source
File: wp-includes/class-wp-theme-json-resolver.php
public static function theme_has_support() { if ( ! isset( self::$theme_has_support ) ) { self::$theme_has_support = (bool) self::get_file_path_from_theme( 'theme.json' ); } return self::$theme_has_support; }
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_theme_json_resolver/theme_has_support