wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_clean_theme_json_cache › WordPress Function

Since6.2.0
Deprecatedn/a
wp_clean_theme_json_cache ( No parameters )
Defined at:
Codex:

Cleans the caches under the theme_json group.



Source

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();
}