clean_cached_data example

/** * Cleans the caches under the theme_json group. * * @since 6.2.0 */
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_Theme_JSON_Resolver::clean_cached_data();
}

/** * Returns the current theme's wanted patterns (slugs) to be * registered from Pattern Directory. * * @since 6.3.0 * * @return string[] */
function wp_get_theme_directory_pattern_slugs() {
    
Home | Imprint | This part of the site doesn't use cookies.