=== modulus Messaging ===
Contributors: modulus, wideview
Tags: viber, sms, woocommerce, messaging, notifications
Requires at least: 6.0
Tested up to: 7.1.3
Requires PHP: 8.0
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Viber and SMS messaging for WordPress and WooCommerce through the modulus messaging platform.

== Description ==

modulus Messaging connects a WordPress or WooCommerce site to the modulus messaging platform and sends Viber and SMS messages to customers, automatically or by hand.

* Three channels: SMS, Viber, and Viber with automatic SMS fallback.
* Viber messages with text, image and a call-to-action button.
* Automations: WooCommerce order status changes, form submissions (Contact Form 7, WPForms, Fluent Forms, Elementor Pro, Gravity Forms), new user registration, custom WordPress actions and scheduled messages.
* Greek name days: automatic wishes to customers who celebrate, with per-name templates and images.
* Message templates with placeholders, fallbacks and conditional blocks.
* Quick send from the WooCommerce order screen and from the customer profile.
* Queue with automatic retries, delivery reports (sent, delivered, read, failed) and a full message history with CSV export.
* Activation and updates through the modulus activation server.

== Installation ==

1. Upload the `modulus-messaging` folder to `/wp-content/plugins/` or install the ZIP from Plugins, Add New.
2. Activate the plugin.
3. Enter the activation code under Messaging, Settings, License.
4. Under Messaging, Providers, enter the Access Key and Secret Key of your modulus account and the sender names.
5. Copy the delivery report URL shown on the Providers screen into your modulus account.
6. Create templates and automations.

== Changelog ==

= 1.0.3 =
* Fixed: update and license checks can no longer be answered by a stale cached response from a proxy, a host cache or a plugin that stores HTTP responses. Every request to the license server is unique and is sent with no-cache headers.
* Changed: a "no update available" answer is kept for 15 minutes instead of 6 hours, so a version published right after a check becomes visible within minutes. An "update available" answer is still kept for 6 hours.
* Changed: the data shown in the "View version details" window is refreshed every 15 minutes.

= 1.0.2 =
* Declares compatibility with WooCommerce 11.2.1 ("WC tested up to"), the version the plugin is tested on.
* Wording: the 1.0.0 note no longer calls it a "first stable release". The 0.0.x versions were production releases; 1.x is only the new numbering.

= 1.0.1 =
* Fixed: the "View version details" window always shows the version, compatibility, requirements and changelog, also when the site already runs the latest version (the license server answers without them in that case). The changelog is shown as a list under a version heading instead of one paragraph.
* Fixed: when the license server runs on the same site and already provides the plugin information, it is kept as is.

= 1.0.0 =
* Version numbering moves to 1.x. Tested on WordPress 7.1.3.
* Fixed: the "View version details" window shows the version information and changelog even when another plugin on the site resets the result of the plugins_api filter (seen with invoicing and courier plugins).
* New: the "Contacts" tab lists registered customers and guests (orders without an account) with search, selection and bulk sending. Tick the contacts, or select all matching a search, and send one message to all of them by SMS, Viber or Viber with SMS fallback. Templates, image and button are available.
* New: each contact shows how many messages were sent to their phone and when the last one was, with a link to the history, and has its own Send button for a single message.
* New: bulk sending skips contacts who opted out (general, Viber or SMS) and tells you which ones were skipped. A guest with the same phone as a selected registered customer gets one message, not two.
* Improved: the Help tab is rewritten: a 5-step quick start and a guide for every tab and feature, matching what the plugin does today.
* Improved: the detected integrations list also shows Elementor Pro and FluentCart.
* Improved: the bulk send form warns you before leaving the page while messages are still being sent, and counts skipped contacts separately from failed ones.
* New: the Viber emoji picker (Rakuten shortcodes) from the Send tab is also available in the bulk send form and in the customer card, for Viber and Viber with SMS fallback.

= 0.0.22 =
* Improved: the "sending is paused" notice is readable on the dark header, and the activation code can be entered directly from the dashboard.
* Improved: the missing-license message tells you to enter the code you received from modulus, or contact modulus to get one.

= 0.0.21 =
* Fixed: a new site connects to the modulus activation server without any extra configuration.
* Fixed: WooCommerce automations now fire with an empty "From status" (any) and with more than one selected status.
* Fixed: the automation builder shows every trigger option (schedule time and recipients, hook name, form ID, phone field, roles), and editing an automation keeps its options and custom text.
* Fixed: scheduled automations send only to their own recipients.
* Fixed: template images and buttons are also sent by form, user, custom and scheduled automations.
* Fixed: placeholders that contain digits (for example form fields such as field_3) are replaced.
* Fixed: an empty validity period now means 24 hours, as described on the Providers screen.
* Fixed: "High" automation priority is sent to the platform as high priority.
* Fixed: each Save button on the Settings screen saves only its own section, and the uninstall data option is saved.
* Fixed: name day widget, order note and custom celebration settings are saved.
* Fixed: the Automations and Name days modules, when switched off, also stop sending.
* Fixed: the front-end shortcode accepts requests only from administrators and shop managers.
* Changed: minimum PHP version is 8.0.

= 0.0.20 =
* Changed: no link in the plugin header.
* Fixed: the update check compares with the installed version.

= 0.0.19 =
* Changed: in-plugin support is switched off in the first phase.

= 0.0.18 =
* Changed: no administrator e-mail notifications; events stay in the log.
