wp_clean_theme_json_cache()
Cleans the caches under the theme_json group.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_clean_theme_json_cache();
Список изменений
С версии 6.2.0 | Введена. |
Код wp_clean_theme_json_cache() wp clean theme json cache WP 6.6.2
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(); }