wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_clean_theme_json_cache › WordPress Function

Since6.2.0
已弃用n/a
› wp_clean_theme_json_cache ( 没有参数 )
定义在:
文档:

Cleans the caches under the theme_json group.



源码

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_styles_custom_css', 'theme_json' );
	wp_cache_delete( 'wp_get_theme_data_template_parts', 'theme_json' );
	WP_Theme_JSON_Resolver::clean_cached_data();
}