wp_clean_theme_json_cache()WP 6.2.0

Cleans the caches under the theme_json group.

No Hooks.

Return

null. Nothing (null).

Usage

wp_clean_theme_json_cache();

Changelog

Since 6.2.0 Introduced.

wp_clean_theme_json_cache() code WP 6.5.4

function wp_clean_theme_json_cache() {
	wp_cache_delete( 'wp_get_global_stylesheet', 'theme_json' );
	wp_cache_delete( 'wp_get_global_styles_svg_filters', 'theme_json' );
	wp_cache_delete( 'wp_get_global_settings_custom', 'theme_json' );
	wp_cache_delete( 'wp_get_global_settings_theme', 'theme_json' );
	wp_cache_delete( 'wp_get_global_styles_custom_css', 'theme_json' );
	wp_cache_delete( 'wp_get_theme_data_template_parts', 'theme_json' );
	WP_Theme_JSON_Resolver::clean_cached_data();
}