Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails

WCEmailTemplateSyncRegistry::get_sync_enabled_emailspublic staticWC 10.8.0

Return the registry of emails participating in template sync.

Method of the class: WCEmailTemplateSyncRegistry{}

No Hooks.

Returns

Array. array{version: string, template_path: string, source: string}> Map keyed by email ID. Each entry holds the parsed @version, the absolute template path, and a source classification (core for first-party emails, third_party otherwise).

Usage

$result = WCEmailTemplateSyncRegistry::get_sync_enabled_emails(): array;

Changelog

Since 10.8.0 Introduced.

WCEmailTemplateSyncRegistry::get_sync_enabled_emails() code WC 10.8.1

public static function get_sync_enabled_emails(): array {
	if ( null === self::$registry_cache ) {
		self::$registry_cache = self::resolve();
	}

	return self::$registry_cache;
}