芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/www/wp-content/plugins/mailpoet/lib/Migrations/App/Migration_20240730_212419_App.php
settings = $this->container->get(SettingsController::class); // Skip if the opt-in checkbox is not enabled or the position is already set. // When enabling, the user chooses the position of the opt-in checkbox // on the same settings page. $optInEnabled = $this->settings->get(Subscription::OPTIN_ENABLED_SETTING_NAME, false); $optInPosition = $this->settings->get(Subscription::OPTIN_POSITION_SETTING_NAME, null); if (!$optInEnabled || $optInPosition) { return; } // Set previous default value for existing installations $this->settings->set(Subscription::OPTIN_POSITION_SETTING_NAME, Hooks::OPTIN_POSITION_BEFORE_TERMS_AND_CONDITIONS); } }