Inactivate subscribers after 12 months by default
[MAILPOET-4016]
This commit is contained in:
committed by
Veljko V
parent
4dce8c2ec5
commit
06812f5544
@ -80,6 +80,17 @@ export default function InactiveSubscribers() {
|
||||
{t('after12months')}
|
||||
</label>
|
||||
</div>
|
||||
<div className="mailpoet-settings-inputs-row">
|
||||
<Radio
|
||||
id="inactive-subscribers-18-months"
|
||||
value="540"
|
||||
checked={duration === '540'}
|
||||
onCheck={setDuration}
|
||||
/>
|
||||
<label htmlFor="inactive-subscribers-18-months">
|
||||
{t('after18months')}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</Inputs>
|
||||
|
@ -89,7 +89,7 @@ export default function normalizeSettings(data: Record<string, unknown>): Settin
|
||||
}),
|
||||
tracking: asObject({ level: asEnum(['full', 'partial', 'basic'], 'full') }),
|
||||
send_transactional_emails: disabledRadio,
|
||||
deactivate_subscriber_after_inactive_days: asEnum(['', '90', '180', '365'], '180'),
|
||||
deactivate_subscriber_after_inactive_days: asEnum(['', '90', '180', '365', '540'], '365'),
|
||||
analytics: asObject({ enabled: disabledRadio }),
|
||||
'3rd_party_libs': asObject({ enabled: disabledRadio }),
|
||||
captcha: asObject({
|
||||
|
@ -54,7 +54,7 @@ export type Settings = {
|
||||
enabled: '' | '1';
|
||||
};
|
||||
send_transactional_emails: '' | '1';
|
||||
deactivate_subscriber_after_inactive_days: '' | '90' | '180' | '365';
|
||||
deactivate_subscriber_after_inactive_days: '' | '90' | '180' | '365' | '540';
|
||||
analytics: {
|
||||
enabled: '' | '1';
|
||||
};
|
||||
|
@ -12,7 +12,7 @@ class SettingsController {
|
||||
const DEFAULT_SENDING_METHOD = 'PHPMail';
|
||||
const DEFAULT_SENDING_FREQUENCY_EMAILS = 25;
|
||||
const DEFAULT_SENDING_FREQUENCY_INTERVAL = 5; // in minutes
|
||||
const DEFAULT_DEACTIVATE_SUBSCRIBER_AFTER_INACTIVE_DAYS = 180;
|
||||
const DEFAULT_DEACTIVATE_SUBSCRIBER_AFTER_INACTIVE_DAYS = 365;
|
||||
|
||||
private $loaded = false;
|
||||
|
||||
|
@ -138,8 +138,9 @@
|
||||
'inactiveSubsDescription': __("Gmail, Yahoo and other email providers will treat your emails like spam if your subscribers don't open your emails in the long run. This option will mark your subscribers as Inactive and MailPoet will stop sending to them."),
|
||||
'disabledBecauseTrackingIs': __('This option is disabled because tracking is disabled.'),
|
||||
'after3months': __('After 3 months (recommended if you send once a day)'),
|
||||
'after6months': __('After 6 months (default, recommended if you send at least once a month)'),
|
||||
'after12months': __('After 12 months'),
|
||||
'after6months': __('After 6 months (recommended if you send at least twice a month)'),
|
||||
'after12months': __('After 12 months (default)'),
|
||||
'after18months': __('After 18 months'),
|
||||
'libs3rdPartyTitle': __('Load 3rd-party libraries'),
|
||||
'libs3rdPartyDescription': __('E.g. Google Fonts (used in Form Editor) and HelpScout (used for support). This needs to be enabled if you want to be able to contact support.'),
|
||||
'shareDataTitle': __('Share anonymous data'),
|
||||
|
Reference in New Issue
Block a user