Add loading settings to JS also on Welcome Wizard page

Settings are needed in the WooCommerce setup step where we
have a logic for setting tracking level.
[MAILPOET-3185]
This commit is contained in:
Rostislav Wolny
2021-12-02 10:20:55 +01:00
committed by Veljko V
parent 3896975ef3
commit 93cfc4d251
2 changed files with 2 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ class WelcomeWizard {
'current_wp_user' => $this->wp->wpGetCurrentUser()->to_array(),
'subscriber_count' => $this->subscribersFeature->getSubscribersCount(),
'has_mss_key_specified' => Bridge::isMSSKeySpecified(),
'settings' => $this->settings->getAll(),
];
$data['mailpoet_feature_flags'] = $this->featuresController->getAllFlags();
$this->pageRenderer->displayPage('welcome_wizard.html', $data);