Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCEmailTemplateSyncRegistry::reset_cache │ public static │ WC 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.

Метод класса: WCEmailTemplateSyncRegistry{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 10.8.0 Введена.

Код WCEmailTemplateSyncRegistry::reset_cache() WC 11.2.2

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