PopulatorData
2 months ago
AccessControl.php
2 years ago
Activator.php
2 months ago
AssetsLoader.php
2 weeks ago
Capabilities.php
2 months ago
Changelog.php
2 months ago
DeactivationPoll.php
3 years ago
DeferredAdminNotices.php
2 months ago
Env.php
6 months ago
Hooks.php
1 month ago
HooksWooCommerce.php
1 month ago
Initializer.php
1 month ago
Installer.php
10 months ago
Localizer.php
3 years ago
Menu.php
1 month ago
PersonalDataErasers.php
1 month ago
PersonalDataExporters.php
1 month ago
PluginActivatedHook.php
3 years ago
Populator.php
2 weeks ago
PrivacyPolicy.php
1 month ago
Renderer.php
1 year ago
RendererFactory.php
3 years ago
RequirementsChecker.php
2 months ago
Router.php
2 months ago
ServicesChecker.php
3 years ago
Shortcodes.php
1 month ago
SilentUpgraderSkin.php
3 years ago
SubscriberChangesNotifier.php
2 months ago
TranslationUpdater.php
3 months ago
TwigEnvironment.php
1 year ago
TwigFileSystemCache.php
3 years ago
Updater.php
4 days ago
index.php
3 years ago
PrivacyPolicy.php
95 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\Config; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\Util\Helpers; |
| 9 | use MailPoet\WooCommerce\Helper as WooCommerceHelper; |
| 10 | use MailPoet\WP\Functions as WPFunctions; |
| 11 | |
| 12 | class PrivacyPolicy { |
| 13 | public function init() { |
| 14 | if (function_exists('wp_add_privacy_policy_content')) { |
| 15 | wp_add_privacy_policy_content(__('MailPoet', 'mailpoet'), $this->getPrivacyPolicyContent()); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | public function getPrivacyPolicyContent() { |
| 20 | $content = ( |
| 21 | '<h2>' . |
| 22 | __('MailPoet newsletter & emails', 'mailpoet') . |
| 23 | '</h2>' . |
| 24 | '<p>' . |
| 25 | __('If you have subscribed to our newsletter or if you are a member of our website (you can log in) or if you have purchased on our website, there is a good chance you will receive emails from us.', 'mailpoet') . |
| 26 | '</p>' . |
| 27 | '<p>' . |
| 28 | __('We will only send you emails which you have signed up to receive, or which pertain to the services we provided to you.', 'mailpoet') . |
| 29 | '</p>' . |
| 30 | '<p>' . |
| 31 | __('To send you emails, we use the name and email address you provide us. Our site also logs the IP address you used when you signed up for the service to prevent abuse of the system.', 'mailpoet') . |
| 32 | '</p>' . |
| 33 | '<p>' . |
| 34 | Helpers::replaceLinkTags( |
| 35 | __('This website can send emails through the [link]MailPoet Sending Service[/link]. This service allows us to track opens and clicks on our emails. We use this information to improve the content of our newsletters.', 'mailpoet'), |
| 36 | 'https://www.mailpoet.com/privacy-notice/', |
| 37 | ['target' => '_blank'] |
| 38 | ) . |
| 39 | '</p>' . |
| 40 | '<p>' . |
| 41 | __('No identifiable information is otherwise tracked outside this website except for the email address.', 'mailpoet') . |
| 42 | '</p>' |
| 43 | ); |
| 44 | $helper = new WooCommerceHelper(WPFunctions::get()); |
| 45 | if ($helper->isWooCommerceActive()) { |
| 46 | $content .= ( |
| 47 | '<p>' . |
| 48 | __('If email tracking is enabled and you make a purchase in our WooCommerce store after clicking a link in one of our emails, we store identifiers of that email, the click, and your subscriber profile with the order to attribute the purchase to the email. This information is kept for the lifetime of the order and is included when you request an export of your personal data; it is removed when your personal data is erased or the order is anonymized.', 'mailpoet') . |
| 49 | '</p>' . |
| 50 | '<p> ' . |
| 51 | __('Below is a list of cookies that may be generated by MailPoet (note that some cookies are only utilized when WooCommerce is installed and activated):', 'mailpoet') . |
| 52 | '</p>' . |
| 53 | '<p>' . |
| 54 | // translators: %s is the name of the cookie. |
| 55 | sprintf(__('Cookie name: %s', 'mailpoet'), 'mailpoet_page_view') . |
| 56 | '<br>' . |
| 57 | // translators: %s is the number of days. |
| 58 | sprintf(__('Cookie expiry: %s days.', 'mailpoet'), WPFunctions::get()->numberFormatI18n(3650)) . |
| 59 | '<br>' . |
| 60 | __('Cookie description: The purpose of this cookie is to track the last time a subscriber viewed any page on the site.', 'mailpoet') . |
| 61 | '</p> ' . |
| 62 | '<p>' . |
| 63 | // translators: %s is the name of the cookie. |
| 64 | sprintf(__('Cookie name: %s', 'mailpoet'), 'mailpoet_revenue_tracking') . |
| 65 | '<br>' . |
| 66 | // translators: %s is the number of days. |
| 67 | sprintf(__('Cookie expiry: %s days.', 'mailpoet'), WPFunctions::get()->numberFormatI18n(14)) . |
| 68 | '<br>' . |
| 69 | __('Cookie description: The purpose of this cookie is to track which newsletter sent from your website has acquired a click-through and a subsequent purchase in your WooCommerce store.', 'mailpoet') . |
| 70 | '</p> ' . |
| 71 | '<p>' . |
| 72 | // translators: %s is the name of the cookie. |
| 73 | sprintf(__('Cookie name: %s', 'mailpoet'), 'mailpoet_subscriber') . |
| 74 | '<br>' . |
| 75 | // translators: %s is the number of days. |
| 76 | sprintf(__('Cookie expiry: %s days.', 'mailpoet'), WPFunctions::get()->numberFormatI18n(3650)) . |
| 77 | '<br>' . |
| 78 | __('Cookie description: The purpose of this cookie is to track subscriber engagement. It is used when the user logs in, signs up in a form, confirms subscription to a newsletter, or places an order through WooCommerce.', 'mailpoet') . |
| 79 | '<br>' . |
| 80 | __('Note: User must be opted-in and a confirmed subscriber.', 'mailpoet') . |
| 81 | '</p>' . |
| 82 | '<p>' . |
| 83 | // translators: %s is the name of the cookie. |
| 84 | sprintf(__('Cookie name: %s', 'mailpoet'), 'popup_form_dismissed_{$formId}') . |
| 85 | '<br>' . |
| 86 | __('Cookie expiry: the expiration date varies and can be set per form.', 'mailpoet') . |
| 87 | '<br>' . |
| 88 | __("Cookie description: This cookie is used to track if a user has previously dismissed a specific form, preventing the re-display of the form until the cookie's expiration date. It is applicable for popup, slide-in, or fixed bar forms.", 'mailpoet') . |
| 89 | '</p>' |
| 90 | ); |
| 91 | } |
| 92 | return $content; |
| 93 | } |
| 94 | } |
| 95 |