=== WABuzz ===
Contributors: mrtublat
Plugin URI: https://tublat.com/whatsapp-wordpress-plugin
Tags: whatsapp, woocommerce, notifiche, 2fa, broadcast
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 8.1
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Send WordPress and WooCommerce notifications via WhatsApp. Includes 2FA OTP, broadcast, templates, and logs.

== Description ==
WABuzz sends WordPress and WooCommerce notifications via WhatsApp using templates and placeholders. It includes user opt-in, WhatsApp number management, sending logs, broadcasts, and 2FA via OTP on WhatsApp. Requires WooCommerce 10.2.1+ when used with WooCommerce.

== External Services ==

This plugin connects to the WABuzz API service to send WhatsApp messages.

**Service Details:**
- Service: WABuzz WhatsApp API (https://wabuzz.tublat.com)
- Purpose: Send WhatsApp messages to users for notifications, 2FA codes, broadcasts, and order updates
- Data Sent: Phone numbers, message content, and optional file URLs are transmitted when sending WhatsApp messages
- When: Data is sent when WordPress/WooCommerce events trigger notifications, when users enable 2FA, during broadcast campaigns, or when test messages are sent
- Service Terms: https://tublat.com/legal/wabuzz
- Privacy Policy: https://tublat.com/legal/privacy

By using this plugin, you acknowledge that data will be transmitted to the WABuzz API service for WhatsApp message delivery.

== Installation ==
1. Upload the `wabuzz` folder to `wp-content/plugins/`.
2. Verify that `wabuzz.php` is in the root of the plugin folder.
3. Make sure this `readme.txt` is present in the same folder.
4. Activate the plugin from Plugins → WABuzz.
5. Go to Settings → WABuzz to configure keys, default language, and WooCommerce integrations.

== Usage ==
- Settings: "WABuzz" page for configuration and testing sending.
- Templates: "Templates" submenu to create/edit templates with placeholders.
- Logs: "Logs" submenu for sending history (status, HTTP, response).
- Broadcast: "WhatsApp Broadcast" page for bulk sending with language and optional attachment.
- User profile: WhatsApp number field and opt-in.
- WooCommerce: Opt-in field in "My Account" and OTP on checkout/login if enabled.

== Placeholders available ==
Examples: `{user_name}`, `{site_name}`, `{order_id}`, `{order_total}`. Placeholders are automatically replaced in templates.

== Frequently Asked Questions ==
= Can I send attachments? =
Yes, you can specify a file URL in broadcast.

= How does the OTP work? =
When 2FA is enabled, the user receives a code via WhatsApp; the code expires and is verified during authentication.

== Screenshots ==
1. WABuzz Settings
2. Templates with Placeholders
3. WhatsApp Send Logs
4. WhatsApp Broadcast

== Changelog ==
= 1.0.0 =
- First release: WP/WooCommerce notifications via WhatsApp, Templates, Logs, Broadcast, 2FA via OTP.
