pageRenderer = $pageRenderer; $this->wp = $wp; $this->capabilitiesManager = $capabilitiesManager; } public function render() { $data = [ 'current_wp_user' => $this->wp->wpGetCurrentUser()->to_array(), ]; // @todo change this after a/b test to keep only one of the pages if ($this->capabilitiesManager->showNewUpgradePage()) { $data = [ 'current_mailpoet_plan_tier' => $this->capabilitiesManager->getTier(), ]; $this->pageRenderer->displayPage('upgrade_tiers.html', $data); return; } $this->pageRenderer->displayPage('upgrade.html', $data); } }