=== Sendak ===
Contributors: sendak
Tags: email, woocommerce, automation, journeys, sendak
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sends your site's people and what they do (sign-ups, orders, forms, abandoned carts) to Sendak, so journeys start by themselves.

== Description ==

Connect once with a Journeys key from your Sendak panel. After that:

* **First sync:** every user, and every guest who ordered, is added to Sendak quietly. Nobody is sent a welcome email for an old sign-up.
* **Live:** new sign-ups, profile changes, and (with WooCommerce) orders placed, paid, completed, cancelled and refunded, and abandoned carts become events your journeys can start from.
* **Forms:** Elementor Forms, Contact Form 7 and Gravity Forms submissions add the person and record a `form.submitted` event.
* **Fields:** email, Iranian mobile number, name, role, registration date, city, country, and with WooCommerce the number of orders, total spent and last order date. More can be added under Advanced.

It is one-way: WordPress to Sendak. The key it uses can only add people and events; it cannot read or delete anything in Sendak.

= Consent =

WordPress does not know who agreed to marketing email, so by default **nobody is marked as agreeing**. Choose on the Sync screen whether to mark only people who tick a box on the sign-up or checkout form, or everybody (once, when first sent). An unsubscribe made in Sendak is never undone by a later sync.

= Updates =

The plugin updates from Sendak's own address (not wordpress.org) and appears on the Plugins screen like any update. Every release is signed; the plugin refuses a package that does not match the signature, so a compromised server cannot push code to your site.

= Privacy =

The plugin sends, to Sendak only: the email, mobile number, name, role, registration date, city, country, order totals and event details listed above (for an order: its number, total, currency, item count, product ids and names, categories, payment method and coupon). The key is stored encrypted with the site's salts. Identity in Sendak is a hash of the email address, so no address appears in a URL. It does not send passwords, payment details or message contents. Following guests' emails at checkout (abandoned carts) is off unless you turn it on.

= Not covered yet =

* The block checkout's marketing checkbox needs WooCommerce 8.9 or newer (the classic checkout box works on any version).
* Two-way sync: an unsubscribe in Sendak does not come back to WordPress.
* Deleting a user marks the contact as unsubscribed and flagged `wp_deleted`; removing the contact is done in the Sendak panel.

== Installation ==

1. Upload the plugin and activate it.
2. Open Sendak in the admin menu, paste your Journeys key, and press Connect.
3. On the Sync screen choose the consent mode and start the first sync.

== Changelog ==

= 0.1.0 =
First version.
