connection = $connection; } public function register(): void { add_action( 'admin_init', array( $this, 'add_policy_content' ) ); add_filter( 'wp_privacy_personal_data_exporters', array( $this, 'add_exporter' ) ); add_filter( 'wp_privacy_personal_data_erasers', array( $this, 'add_eraser' ) ); } public function add_exporter( array $exporters ): array { $exporters['mowl'] = array( 'exporter_friendly_name' => __( 'Mowl', 'mowl-email' ), 'callback' => array( new Exporter( $this->connection ), 'export' ), ); return $exporters; } public function add_eraser( array $erasers ): array { $erasers['mowl'] = array( 'eraser_friendly_name' => __( 'Mowl', 'mowl-email' ), 'callback' => array( new Eraser( $this->connection ), 'erase' ), ); return $erasers; } public function add_policy_content(): void { if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) { return; } wp_add_privacy_policy_content( __( 'Mowl — E-mail Marketing', 'mowl-email' ), wp_kses_post( self::policy_text() ) ); } /** A javasolt adatkezelési szöveg (HTML); a DOI-bekezdés csak bekapcsolt double opt-in mellett. */ public static function policy_text(): string { $content = '
' . esc_html__( 'When a visitor submits the newsletter form, we send their email address, name (if provided), the page URL, IP address, browser user agent and the consent text they accepted to Mowl (mowl.email), our email marketing provider, to manage the subscription. With double opt-in enabled, the address is stored only after the visitor confirms via email. Subscribers can unsubscribe from any email or by contacting us.', 'mowl-email' ) . '
'; if ( Turnstile::enabled() ) { // phpcs:ignore PluginCheck.CodeAnalysis.Offloading.OffloadedContent -- link a Cloudflare adatkezelési tájékoztatójára, nem betöltött erőforrás $content .= '' . esc_html__( 'Our newsletter form is protected by Cloudflare Turnstile. When you open a page with the form, your browser connects to Cloudflare, which checks that you are not an automated program; when you submit the form, we send the check result and your IP address to Cloudflare to verify it. See the Cloudflare Turnstile privacy addendum: https://www.cloudflare.com/turnstile-privacy-policy/', 'mowl-email' ) . '
'; } // I9: a kosár-követés (WooCommerce) helyben tárolt adatai — a // javaslat eddig csak a feliratkozási űrlapról szólt. $content .= '' . esc_html__( 'If abandoned-cart reminders are enabled in our shop, we also store the contents of your cart and the email address you give at checkout on this site, until the cart is recovered or the saved cart is deleted (after 30 days at the latest), and we send those cart details to Mowl to deliver the reminder email.', 'mowl-email' ) . '
'; $content .= '' . esc_html__( 'If our shop is connected to Mowl with WooCommerce sync, we send the name, email address and an order summary (number of orders, total spent, first and last order date) of every customer who has placed an order to Mowl, including customers from before the connection, and we update them daily. The marketing consent you gave at checkout or on the My account page is sent with them. When you ask us to erase your personal data, we also ask Mowl to anonymise it; Mowl then keeps only a salted, one-way fingerprint of your email address, so that you are not added again without a new consent from you.', 'mowl-email' ) . '
'; // B2: a vásárlás-előzmény (termékek, kategóriák) a szinkronnal. $content .= '' . esc_html__( 'With the WooCommerce sync we also send Mowl which products you bought from us, their categories, when you first and last bought them and in how many orders, so that we can send you offers that match your purchases.', 'mowl-email' ) . '
'; // B4: a rendelés-életciklus eseményei (lemondás, visszatérítés, sikertelen/függő fizetés). $content .= '' . esc_html__( 'We also tell Mowl when an order is cancelled, fully or partly refunded, fails or waits for payment, with the refunded amount and, if the order can still be paid, the link to pay for it, so that products you did not keep are not used for offers and you can be reminded of an unfinished payment.', 'mowl-email' ) . '
'; // B3: az „újra kapható” értesítő jelentkezés. $content .= '' . esc_html__( 'If you ask to be emailed when a sold-out product is back in stock, we send your email address, the product, the page URL, the language of our shop, your IP address and browser user agent to Mowl (mowl.email), which keeps your request for at most 180 days from your last request and emails you once when the product is available again. If you also tick the newsletter option, the consent text you accepted is sent with it, and you are subscribed only after you confirm via email.', 'mowl-email' ) . '
'; // B1: a pénztári/Fiókom-hozzájárulás double opt-inja. if ( DoubleOptIn::enabled() ) { $content .= '' . esc_html__( 'Because double opt-in is on for the marketing consent in our shop, a consent you give at checkout or on the My account page takes effect only after you confirm it with the link in the email Mowl sends you on our behalf; until then you receive no newsletter campaigns. We also send the language of our shop, so that the email is in that language.', 'mowl-email' ) . '
'; } return $content; } }