Add WC customizer activation button to the editor [MAILPOET-2520]
This commit is contained in:
@ -75,6 +75,7 @@ class NewsletterEditor {
|
||||
'email_base_color' => $email_base_color,
|
||||
'email_base_text_color' => $this->woocommerce_helper->wcLightOrDark($email_base_color, '#202020', '#ffffff'),
|
||||
'email_text_color' => $this->wp->getOption('woocommerce_email_text_color', '#000000'),
|
||||
'customizer_enabled' => (bool)$this->settings->get('woocommerce.use_mailpoet_editor'),
|
||||
];
|
||||
}
|
||||
$data = [
|
||||
|
@ -105,8 +105,8 @@ class Settings {
|
||||
|
||||
if (isset($_GET['enable-customizer-notice'])) {
|
||||
$notice = new WPNotice(WPNotice::TYPE_ERROR, $this->wp->_x(
|
||||
'You need to enable MailPoet email customizer for WooCommerce if you want to access to the customizer.',
|
||||
'Notice in Settings when WooCommerce customizer is not enabled'
|
||||
'You need to have WooCommerce active to access the MailPoet email customizer for WooCommerce.',
|
||||
'Notice in Settings when WooCommerce is not enabled'
|
||||
), 'mailpoet');
|
||||
$notice->displayWPNotice();
|
||||
}
|
||||
|
Reference in New Issue
Block a user