WP_Theme_JSON_Resolver::clean_cached_data()

Cleans the cached data so it can be recalculated.


Source

File: wp-includes/class-wp-theme-json-resolver.php

	public static function clean_cached_data() {
		self::$core                     = null;
		self::$theme                    = null;
		self::$user                     = null;
		self::$user_custom_post_type_id = null;
		self::$theme_has_support        = null;
		self::$i18n_schema              = null;
	}

Top ↑

Changelog

Changelog
Version Description
5.9.0 Added the $user, $user_custom_post_type_id, and $i18n_schema variables to reset.
5.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.