protected function finalSuccess() { parent::finalSuccess(); $this->updateRublonSettings(); $updateMessage = 'PLUGIN_REGISTERED'; RublonHelper::setMessage($updateMessage, 'updated', 'CR'); RublonCookies::setAuthCookie(); $pluginMeta = RublonHelper::preparePluginMeta(); $pluginMeta['action'] = 'activation'; RublonHelper::pluginHistoryRequest($pluginMeta); $other_settings = RublonHelper::getSettings('other'); if (!empty($other_settings['newsletter_signup'])) { foreach ($other_settings['newsletter_signup'] as $email) { $rublon_req = new RublonRequests(); $rublon_req->subscribeToNewsletter($email); } unset($other_settings['newsletter_signup']); RublonHelper::saveSettings($other_settings, 'other'); } // Save project owner information RublonHelper::saveProjectOwner(); // Clear features cache if it is not a Business Editions RublonFeature::getFeatures(false); if (!RublonFeature::isBusinessEdition()) { RublonFeature::deleteFeaturesFromCache(); } $this->_redirect(admin_url(RublonHelper::WP_RUBLON_PAGE)); }