Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCEmailTemplateSyncRegistry::get_sync_enabled_emails
Return the registry of emails participating in template sync.
Method of the class: WCEmailTemplateSyncRegistry{}
No Hooks.
Returns
array<string, 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() WCEmailTemplateSyncRegistry::get sync enabled emails code WC 11.1.2
public static function get_sync_enabled_emails(): array {
if ( null === self::$registry_cache ) {
self::$registry_cache = self::resolve();
}
return self::$registry_cache;
}