=> '#111111', ]; $result = []; foreach ($wcEmailSettings as $name => $default) { $value = $this->wp->getOption($name); $key = preg_replace('/^woocommerce_email_/', '', $name); $result[$key] = $value ?: $default; } $result['base_text_color'] = $this->woocommerceHelper->wcLightOrDark($result['base_color'], '#202020', '#ffffff'); if ($this->woocommerceHelper->wcHexIsLight($result['body_background_color'])) { $result['link_color'] = $this->woocommerceHelper->wcHexIsLight($result['base_color']) ? $result['base_text_color'] : $result['base_color']; } else { $result['link_color'] = $this->woocommerceHelper->wcHexIsLight($result['base_color']) ? $result['base_color'] : $result['base_text_color']; } $result['footer_text'] = $this->replacePlaceholders($result['footer_text']); // The footer text is placed inside a paragraph in a text block so we keep only tags we allow in the text block in the newsletter editor $result['footer_text'] = strip_tags($result['footer_text'], '
'); return $result; } }
Fatal error: Uncaught Error: Class "MailPoet\WooCommerce\TransactionalEmails" not found in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php:4938 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4948): MailPoetGenerated\FreeCachedContainer->getTransactionalEmailsService() #1 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3377): MailPoetGenerated\FreeCachedContainer->getContentPreprocessorService() #2 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(3387): MailPoetGenerated\FreeCachedContainer->getPreprocessorService() #3 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4374): MailPoetGenerated\FreeCachedContainer->getRenderer5Service() #4 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4384): MailPoetGenerated\FreeCachedContainer->getConfirmationEmailCustomizerService() #5 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4474): MailPoetGenerated\FreeCachedContainer->getConfirmationEmailMailerService() #6 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(4634): MailPoetGenerated\FreeCachedContainer->getSubscriberActionsService() #7 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2248): MailPoetGenerated\FreeCachedContainer->getCommentService() #8 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2276): MailPoetGenerated\FreeCachedContainer->getHooks2Service() #9 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #10 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #11 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #12 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #13 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(206): require_once('/htdocs/wp-cont...') #14 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #15 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #16 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #17 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #18 /htdocs/index.php(17): require('/htdocs/wp-blog...') #19 {main} thrown in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php on line 4938