Add hook for changing default theme for email editor
[MAILPOET-5814]
This commit is contained in:
committed by
Jan Lysý
parent
cd274c0738
commit
0daf720d34
@ -178,7 +178,7 @@ class SettingsController {
|
|||||||
$themeJson = json_decode($themeJson, true);
|
$themeJson = json_decode($themeJson, true);
|
||||||
/** @var array $themeJson */
|
/** @var array $themeJson */
|
||||||
$coreThemeData->merge(new \WP_Theme_JSON($themeJson, 'default'));
|
$coreThemeData->merge(new \WP_Theme_JSON($themeJson, 'default'));
|
||||||
return $coreThemeData;
|
return apply_filters('mailpoet_email_editor_theme_json', $coreThemeData);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStylesheetForRendering(): string {
|
public function getStylesheetForRendering(): string {
|
||||||
|
Reference in New Issue
Block a user