features_controller = $features_controller; $this->renderer = $renderer; $this->settings = $settings; } function disableWooCommerceSettings() { if ( !isset($_GET['tab']) || $_GET['tab'] !== 'email' || isset($_GET['section']) ) { return; } if (!$this->features_controller->isSupported(FeaturesController::WC_TRANSACTIONAL_EMAILS_CUSTOMIZER)) { return; } if (!(bool)$this->settings->get('woocommerce.use_mailpoet_editor')) { return; } echo $this->renderer->render('woocommerce/settings_overlay.html', [ 'woocommerce_template_id' => $this->settings->get(TransactionalEmails::SETTING_EMAIL_ID), ]); } }