Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCEmailTemplateSyncRegistry::get_sync_enabled_emails
Return the registry of emails participating in template sync.
Метод класса: WCEmailTemplateSyncRegistry{}
Хуков нет.
Возвращает
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).
Использование
$result = WCEmailTemplateSyncRegistry::get_sync_enabled_emails(): array;
Список изменений
| С версии 10.8.0 | Введена. |
Код WCEmailTemplateSyncRegistry::get_sync_enabled_emails() WCEmailTemplateSyncRegistry::get sync enabled emails WC 11.2.2
public static function get_sync_enabled_emails(): array {
if ( null === self::$registry_cache ) {
self::$registry_cache = self::resolve();
}
return self::$registry_cache;
}