Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCEmailTemplateSyncRegistry::reset_cachepublic staticWC 10.8.0

Reset the request-scoped registry cache.

Intended for tests and for call sites that mutate the underlying inputs (e.g. toggling a feature flag) within the same request.

Method of the class: WCEmailTemplateSyncRegistry{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = WCEmailTemplateSyncRegistry::reset_cache(): void;

Changelog

Since 10.8.0 Introduced.

WCEmailTemplateSyncRegistry::reset_cache() code WC 10.9.4

public static function reset_cache(): void {
	self::$registry_cache  = null;
	self::$first_party_ids = null;
}