diff --git a/assets/js/src/settings/pages/basics/unsubscribe_page.tsx b/assets/js/src/settings/pages/basics/unsubscribe_page.tsx
index 7c414e0968..2a4da40732 100644
--- a/assets/js/src/settings/pages/basics/unsubscribe_page.tsx
+++ b/assets/js/src/settings/pages/basics/unsubscribe_page.tsx
@@ -1,4 +1,5 @@
import React from 'react';
+import ReactStringReplace from 'react-string-replace';
import { t } from 'common/functions';
import { useSetting } from 'settings/store/hooks';
import { Label, Inputs, PagesSelect } from 'settings/components';
@@ -11,9 +12,21 @@ export default function UnsubscribePage() {
title={t('unsubscribeTitle')}
description={(
<>
- {t('unsubscribeDescription1')}
-
- {t('unsubscribeDescription2')}
+ {
+ ReactStringReplace(
+ t('unsubscribeDescription1'),
+ '[mailpoet_page]',
+ () => [mailpoet_page]
+ )
+ }
+
+ {
+ ReactStringReplace(
+ t('unsubscribeDescription2'),
+ 'mailpoet_unsubscribe_confirmation_page',
+ () => mailpoet_unsubscribe_confirmation_page
+ )
+ }
>
)}
htmlFor="subscription-pages-unsubscribe"
diff --git a/views/settings.html b/views/settings.html
index e527cb8ed7..5f368497e9 100644
--- a/views/settings.html
+++ b/views/settings.html
@@ -64,8 +64,8 @@
'leaveEmptyToDisplayAll': __('Leave this field empty to display all lists'),
'unsubscribeTitle': __('Unsubscribe page'),
- 'unsubscribeDescription1': __('When your subscribers click the "Unsubscribe" link, they will be directed to this page.'),
- 'unsubscribeDescription2': __('If you want to use a custom Unsubscribe page, simply paste this shortcode on to a WordPress page: [mailpoet_manage text="Manage your subscription"]'),
+ 'unsubscribeDescription1': __('When your subscribers click the “Unsubscribe” link, they will be directed to confirmation page. After confirming, the success page will be shown. These pages must contain [mailpoet_page] shortcode.'),
+ 'unsubscribeDescription2': __('You can use mailpoet_unsubscribe_confirmation_page filter to change confirmation sentence. The URL to confirm unsubscribing is sent as a 2nd parameter to the filter.'),
'statsNotifsTitle': _x('Stats notifications', 'name of a setting to automatically send statistics (newsletter open rate, click rate, etc) by email'),
'statsNotifsDescription': _x(