Add hook for changing default theme for email editor

[MAILPOET-5814]
This commit is contained in:
Rostislav Wolny
2024-01-17 14:34:16 +01:00
committed by Jan Lysý
parent cd274c0738
commit 0daf720d34

View File

@ -178,7 +178,7 @@ class SettingsController {
$themeJson = json_decode($themeJson, true);
/** @var array $themeJson */
$coreThemeData->merge(new \WP_Theme_JSON($themeJson, 'default'));
return $coreThemeData;
return apply_filters('mailpoet_email_editor_theme_json', $coreThemeData);
}
public function getStylesheetForRendering(): string {