=== Automation Web Platform – Notifications, OTP, and Advanced Phone Field ===

Contributors: 101Gen, wawp, ahmedsafaa
Tags: automation, whatsapp, abandoned carts, wawp, woocommerce
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 4.7.9
License: GPLv3 or later
License URI: https://opensource.org/licenses/GPL-3.0

Automation Web Platform (Wawp) - Automate notifications, secure your store with OTP, and optimize checkout with an advanced phone field.
 
== Description ==

Tired of manually sending WhatsApp order updates and payment follow-ups?   
Let **Wawp** handle it all—right from your WhatsApp!

and more—all in one powerful plugin.

**More automation, less work—sell smarter with Wawp! ✨**

This plugin relies on the Wawp.net SaaS service. You can find our Terms of Service at https://wawp.net/terms-of-services/ and Privacy Policy at https://wawp.net/privacy-policy/.


== 🤖 Automated Notifications ==

✅ **New Order Notification** – Send WhatsApp message to customers with order details after checkout.  
✅ **Order Status Updates** – Notify customers automatically about changes to their order status.  
✅ **Admin/Staff Alerts** – Receive real-time WhatsApp alerts for new orders and status changes.  
✅ **After Purchase Upsell** – Schedule follow-up messages to re-engage customers and boost sales.  
✅ **Pending Payments** – Send gentle reminders for pending payments, to get paid faster.  
✅ **Product Reviews** – Collect product reviews on auto-pilot with customized WhatsApp messages.

**Notification types:**

Pending payment: Notify customers about unpaid orders.
On hold: Inform about orders waiting for payment confirmation.
Processing: Let customers know their order is being prepared.
Completed: Confirm successful order delivery.
Failed: Notify customers of failed transactions.
Draft: Keep track of unfinished orders.
Canceled: Alert customers when an order is canceled.
Refunded: Inform about successful refunds.
Customer Note: Send custom updates directly to customers.
Custom Status: Set up notifications for any custom status.

== 🔐 User Authentication ==

✅ **Blacklist Numbers** — Block Fake and Spam users to prevent abuse and secure your site.  
✅ **Fully customizable** — Colors, logo, and text – control your login looks, without technical effort.  
✅ **Multiple login options** — Enable login via WhatsApp, Email OTP, or Email & Password.  
✅ **Signup Verification** — Verify new accounts via WhatsApp or Email OTP.
✅ **Role-Based Redirects** — Redirect users to specific pages based on their roles after login.
✅ **Welcome message** — Send personalized welcome messages to introduce your brand to new customers.
✅ **User Login Alerts** — Get instant notifications for user logins and signups to ensure security.
✅ **Google ReCAPTCHA** — Secure Login, Registration, and Lost Password forms with ReCAPTCHA v2/v3.
✅ **Chic Settings UI** — New premium design for Authentication Settings with dynamic status updates.
✅ **Smart Guidance** — Descriptive status bars (Green Bar) to guide you through redirection impacts.
✅ **One-Click View** — Easily view your active Login/Signup pages directly from settings.

= Shortcodes for Easy Integration: =

- Login Form: `[wawp_otp_login]`  
- Signup Form: `[wawp_signup_form]`  
- Both Forms: `[wawp-fast-login]`  

= 100% Compatible with:

✅ Bricks Builder
✅ Elementor
✅ Gutenberg
✅ Native WordPress Forms
✅ Native WooCommerce Forms

== 🛒 WooCommerce Order Verification == 

Prevent fake orders with WhatsApp OTP verification before checkout.

1. Enable OTP for **visitors, members, or everyone**.
1. Enable OTP based on **payment method** (e.g., Cash on Delivery, PayPal, Stripe).
1. Enable OTP based on **shipping method** (e.g., Standard, Express).

== 💬 WhatsApp Chat Widget ==  

✅ **Multi-agent Support** — Easily assign different contacts for support, sales, or inquiries.  
✅ **Display Condition** — Set when the chat button appears based on device or pages.  
✅ **Fully customize** — button design (colors, text, icons, positioning).  
✅ **Integrate social media links** — directly into the button.  
✅ **Auto-generate QR codes** — for instant messaging.  
✅ **Track button clicks** — to analyze customer interactions.

== 🌍 Country Code == 

✅ **Number Validation** — Verify phone numbers in real time to reduce errors and boost data quality.  
✅ **Auto-detect Country** — Automatically detect country code by visitor location or preset default.  
✅ **Country Filtering** — Display only the countries that your audience and customers are from.  
✅ **100% Compatible** — Country code compatible with all themes, page builders & plugins.  
✅ **Country Selection** — Allow users to choose their country code when entering their phone number.   
✅ **Country Filtering** — Restrict or display specific countries in the dropdown.   
✅ **Auto-Formatting** — Format phone numbers dynamically as users type for maximum accuracy.  
== 📊 Diagnostics & Privacy ==

This plugin includes an optional feature to share non-sensitive diagnostic data to help improve plugin performance and troubleshoot issues. This data is only shared if explicitly permitted by the site administrator via the Connector settings.

== 📜 Messages History ==

✅ **Track all messages** – Show all details (order number, user details, phone numbers, etc.).
✅ **Advanced Filters** – Use live search & advanced filters find specific messages.
✅ **Identify Failed Messages** – Troubleshoot and fix delivery issues.
✅ **Resend Messages** – Retry failed messages with a single click.

== 🎨 Personalization ==

✅ **Dynamic Content** — Use Variables to insert customer names, order details, and more. 
✅ **Full emoji support** — Add personality and fun to your communication.
✅ **Rich Messages** — Attach multi-media to capture customers attention.
✅ **Direct Messages** — Send message to any WhatsApp number directly from your dashboard.

== 👤 Customer Management ==

✅ Verify whether a member’s number is **active on WhatsApp**.  
✅ View **all phone numbers linked** to a member’s account for login and orders.  

**Note:** You can assign unique WhatsApp numbers for every task like order updates, admin alerts, and login verification.


== External Services ==

This plugin acts as a gateway to external Software as a Service (SaaS) providers. Use of these services is optional and requires explicit user configuration. To ensure full transparency and compliance, we disclose the following external service integrations:

**1. Wawp.net (Core Service)**
* **Service:** Wawp.net API Gateway
* **Description:** Provides the infrastructure for WhatsApp Web connection, message routing, and phone number validation.
* **Compliance:** All communication is encrypted via HTTPS. Wawp.net does not store your customers' data beyond the time required for delivery routing.
* **Data Sent:** Recipient phone number, message payload, site URL, and authentication tokens.
* **Consent:** Granted by configuring a Wawp Instance and activating any notification trigger.
* **Policies:** [Terms of Service](https://wawp.net/terms-of-services/) | [Privacy Policy](https://wawp.net/privacy-policy/)

**2. Meta (WhatsApp Cloud API)**
* **Service:** Official WhatsApp Business Platform (graph.facebook.com, connect.facebook.net)
* **Purpose:** Used for enterprise-grade message delivery via Meta's official infrastructure.
* **Data Sent:** Recipient phone number, template parameters, and Meta App credentials.
* **Consent:** Granted only if the "Meta WhatsApp" channel is explicitly selected and configured.
* **Policies:** [Meta Commerce Terms](https://www.facebook.com/legal/commerce_product_merchant_agreement) | [Meta Privacy Policy](https://www.facebook.com/about/privacy/)

**3. WhatsApp (Direct Chat Interaction)**
* **Service:** WhatsApp Public API (api.whatsapp.com)
* **Purpose:** Enables the Chat Widget to redirect users to the WhatsApp application with a pre-filled message.
* **Data Sent:** Recipient phone number and optional message text. No data is sent automatically; redirection happens only upon user interaction (click).
* **Consent:** Granted by enabling the Chat Widget and a user clicking the chat button.
* **Policies:** [WhatsApp Terms](https://www.whatsapp.com/legal/terms-of-service/) | [WhatsApp Privacy](https://www.whatsapp.com/legal/privacy-policy/)

**4. Google reCAPTCHA & Firebase**
* **Service:** Security & Authentication Platform
* **Purpose:** Prevents bot abuse (reCAPTCHA) and optionally provides OTP verification (Firebase).
* **Data Sent:** Device/application information for fraud analysis and phone numbers for verification.
* **Consent:** Granted when these features are explicitly enabled in settings.
* **Policies:** [Google Terms](https://policies.google.com/terms) | [Google Privacy](https://policies.google.com/privacy) | [Firebase Privacy](https://firebase.google.com/support/privacy)

**5. GrapesJS**
* **Service:** Email Template Builder (app.grapesjs.com)
* **Purpose:** Provides the drag-and-drop builder interface for editing email templates. The bundled editor sends basic telemetry (plugin version/domain) to its server to track usage.
* **Data Sent:** Domain name and plugin version when the editor is loaded.
* **Consent:** Automatic when loading the email template builder interface in the admin dashboard.
* **Policies:** [GrapesJS Privacy Policy](https://grapesjs.com/privacy.html) | [GrapesJS Terms](https://grapesjs.com/terms.html)

**6. Pollinations AI**
* **Service:** AI Text Generation (text.pollinations.ai)
* **Purpose:** Used in the notifications builder to automatically generate and suggest message templates.
* **Data Sent:** Prompt text containing placeholders, sent only when you click the AI generation button.
* **Consent:** Granted only when a user actively clicks the AI generation button.
* **Policies:** [Pollinations AI Privacy Policy](https://pollinations.ai/privacy) | [Pollinations AI Terms](https://pollinations.ai/terms)

**7. WordPress.org API**
* **Service:** WordPress Core API (api.wordpress.org)
* **Purpose:** Used internally by the System Info module to verify if the plugin version matches the latest stable version available.
* **Data Sent:** Standard HTTP headers required for version checking.
* **Consent:** Automatic when loading the system info.
* **Policies:** [WordPress.org Privacy Policy](https://wordpress.org/about/privacy/)

**8. Geolocation & Privacy**
* **Local Processing:** To protect user privacy, geolocation is handled 100% internally using the browser's timezone API; **no external IP-lookup services** (such as ipapi.co or ip-api.com) are used by this plugin.
* **Zero-Tracking Policy:** This plugin does not collect or track admin behavior. No data is sent to external servers without explicit consent and connection to the respective service.
* **Dashboard Analytics:** Statistics (message delivery, chat clicks) are generated locally from your site's database and used only for internal monitoring.
* **Assets:** All core CSS, JS, and font files are bundled locally to prevent third-party asset tracking.


== 📃 How to Start ==

1. Install and activate the Wawp plugin.
1. Create a free account on [Wawp](https://wawp.net/signup).
1. Connect your WhatsApp number using a QR code.
1. Insert the API keys into the plugin.
1. Customize your selected notification messages.

**Note:** A Wawp account is required to access all plugin features.  
[**Create new account**](https://wawp.net/signup), and send 50 WhatsApp messages per month for Free.   

= Let’s grow, connect, and thrive together! =  

👉 [**Try Wawp for FREE (250 Messages/Month)**](https://wawp.net/signup/)  
📌 [**Facebook Community.**](https://www.facebook.com/groups/wawpcommunity) – Join other users for support, advice, and tips.    
📚 [**Getting started.**](https://help.wawp.net/en_US/how-to-install-activate-wawp-on-wordpress/) – Access step-by-step guides, FAQs, and tutorials.  
⭐ [**Rate Us on WordPress.**](https://wordpress.org/support/plugin/automation-web-platform/reviews/#new-post) – Your feedback helps us grow and improve!  
🌍 [**Help Translate Wawp.**](https://translate.wordpress.org/projects/wp-plugins/automation-web-platform/) – Your feedback helps us grow and improve! 
📽 [**Video Tutorials**](https://www.youtube.com/@wawpapp)

== Source Code & Build Tools ==

This plugin uses modern development tools (React, Vite, NPM) to build the administrative dashboard. To comply with WordPress.org guidelines regarding human-readable code:

1. **Plugin Source Code:**
The full, non-minified, human-readable source code for the React dashboard is included within this plugin package in the `app/src/` directory.
- **Main Entry:** `app/src/index.tsx`
- **Components:** `app/src/components/`
- **Build Tool:** Vite (configuration in `app/vite.config.ts`)
- **Build Instructions:** To generate the minified assets in `app/dist/`, navigate to the `app/` directory and run:
  `npm install`
  `npm run build`

2. **Third-Party Libraries:**
The following libraries are included in minified form for performance. Their original source code can be found at these public repositories:
- **International Telephone Input (intl-tel-input):** [Source](https://github.com/jackocnr/intl-tel-input) (Used in `assets/js/resources/intlTelInput.min.js`)
- **QRCode.js:** [Source](https://github.com/davidshimjs/qrcodejs) (Used in `assets/js/resources/qrcode.min.js`)
- **Firebase SDK (Compat):** [Source](https://github.com/firebase/firebase-js-sdk) (Used in `assets/js/resources/firebase-auth-compat.js` and `firebase-app-compat.js`)
- **Facebook SDK:** [Source](https://github.com/facebook/facebook-nodejs-business-sdk) (Used in `assets/js/resources/fb-sdk.js`)
- **GrapesJS:** [Source](https://github.com/GrapesJS/grapesjs) (Used in the email template builder)

== Installation ==

1. Install using the WordPress built-in Plugin installer, or Extract the zip file and drop the contents in the `wp-content/plugins/` directory of your WordPress installation.
1. Activate the plugin through the **‘Plugins’** menu in WordPress.
1. Create new account on [**Wawp.net**](https://wawp.net/signup)
1. Connect your whatsapp with qr code in [**Wawp dashboard**](https://wawp.net/account/connect)
1. Add instances in Wawp plugin in the `wp-admin/admin.php?page=wawp&wawp_section=instances`
1. Now you can automate your conversations, and unlock WhatsApp superpowers.

For documentation and tutorials visit our [**Knowledge Base.**](https://wawp.net/get-started/welcome-to-wawp/)

[youtube https://www.youtube.com/watch?v=8vHnesN6_q8]

== Frequently Asked Questions ==

**How do I get started with Wawp?**

Simply install our free plugin on your WordPress site, connect your WhatsApp number, and configure your preferred features. Read our [detailed guide](https://wawp.net/get-started/welcome-to-wawp/).

**Is Wawp Free?**

Yes, Wawp offers a free plan that includes 200 free messages each month. You can upgrade to the [Pro plan](https://wawp.net/pricing/) to send more messages.

**Do I need to signup for WhatsApp API?**

No, you do not need WhatsApp API at all. Wawp is simple to use and is affordable.

**Are there any additional costs by WhatsApp?**

There is no additional payment taken by WhatsApp to use Wawp.

**Can I use Wawp for multiple WhatsApp numbers?**

Yes, Wawp supports unlimited sites and multiple WhatsApp numbers, making it ideal for businesses with diverse operations.

**Can I disconnect my WhatsApp number?**

Yes, Wawp allows you to disconnect your WhatsApp number with just one click, giving you complete control over your account.

== Screenshots ==

1. connect your Whatsapp
2. Assign Custom Number
3. Advanced Phone Field
4. Auto-Retry Mechanism
5. Block Manager
6. Checkout Verification
7. Country Code Selector
8. Multilanguage Notifications
9. Multi Agent Chat Button
10. Notifications Builder
11. Passwordless Login
12. Receive Orders Instantly
13. Registration form Builder
14. Send Order Notifications
15. Setup Smtp Easily



== Changelog ==

= Version: 4.7.9 – Date: 09-05-2026 =
- **New Architecture:** Major refactoring to a trait-based modular system for better performance and maintainability.
- **Security:** Standardized AJAX security with centralized nonce and capability checks across all modules.
- **UI Optimization:** Centralized all SVG assets and UI helpers to reduce plugin footprint and improve load speed.
- **DB Optimization:** Implemented dynamic schema-driven table management for more robust database operations.
- **Standardization:** Unified phone number sanitization and formatting using the new global Phone Helper Trait.
- **Compliance:** Standardized all module behaviors to align with WordPress.org security and privacy guidelines.
- **SaaS Transition:** Replaced restrictive access logic with a compliant "Cloud Service Connection" UI for SaaS-based features.
- **New:** Full refactoring of all date/time functions to use Carbon library for better timezone handling and consistency.
- **Enhancement:** Fixed i18n missing translators comments for strings with placeholders.
- **Enhancement:** Cleaned up development and application files (composer.phar, php-scoper.phar, etc.) from the plugin package.
- **Optimization:** Improved message parsing logic and placeholder fallbacks.
- **Cleanup:** Removed unused assets and temporary test files.
- **New:** Integration of Meta API into Bulk Campaigns with dedicated settings.
- **New:** Added support for Meta Template Messages (dropdown selection) in Campaigns.
- **New:** Added dedicated text area with emoji support for Meta API messages (24-hour window) in Campaigns.
- **New:** Added "Meta API Estimated Recipients" count to the Campaign Wizard.
- **Enhancement:** Added missing translation strings to ensure full localization support.
- **Enhancement:** Updated Wawp API for sending WhatsApp messages.
- **Bug Fixes:** Fixed WhatsApp message delivery for Latin American phone numbers by adding automatic prefix handling for 8 countries:
  - Mexico (+52): Automatically adds '1' prefix (e.g., 525574771886 becomes 5215574771886)
  - Colombia (+57): Automatically adds '1' prefix (e.g., 573001234567 becomes 5713001234567)
  - Argentina (+54): Automatically adds '9' prefix for mobile numbers (e.g., 541112345678 becomes 5491112345678)
  - Brazil (+55): Automatically adds '9' prefix for mobile numbers (e.g., 551112345678 becomes 5591112345678)
  - Chile (+56): Automatically adds '9' prefix for mobile numbers (e.g., 56212345678 becomes 569212345678)
  - Venezuela (+58): Automatically adds '4' prefix for mobile numbers (e.g., 582121234567 becomes 5842121234567)
  - Peru (+51): Automatically adds '9' prefix for mobile numbers (e.g., 51987654321 becomes 51987654321)
  - Ecuador (+593): Automatically adds '9' prefix for mobile numbers (e.g., 593987654321 becomes 5939987654321)
- **Bug Fixes:** Fixed AJAX error in Users page Send button - corrected send_message method parameters to use proper API signature.
- **New:** Google ReCAPTCHA integration (v2 & v3) for Login, Registration, and Checkout forms.
- **New:** Added live real-time preview for the WhatsApp Chat Widget in the backend settings.
- **New:** High-fidelity "Snapshot" summary blocks added to WhatsApp History, Meta WhatsApp History, and Email History.
- **New:** Implemented a modern "Actions" dropdown for Bulk Campaigns for a cleaner table UI.
- **New:** Automatically enable/disable "Redirect wp-login.php" based on WhatsApp instance connectivity status.
- **New:** Unified Admin Settings Footer Bar across all core settings (Passwordless Login, Registration, Checkout, Country Code, Chat Widget, Notifications, and Senders).
- **New:** Intelligent "Unsaved Changes" manager warns users before leaving pages with unsaved data, with smart bypass for programmatic reloads in Senders, Campaigns, and Logs.
- **New:** Order Quick Actions Box – A floating sidebar card on the WooCommerce single order page for sending WhatsApp updates and status notifications instantly.
- **New:** Unified Placeholder "Cheat Sheet" – Reorganized and expanded message placeholder documentation into 5 clear categories: General, Orders, Abandoned Carts, Campaigns, and OTP.
- **Enhancement:** RTL/LTR Directional Fix – Implemented Unicode directional markers (LRM/RLM) to prevent text distortion when mixing Arabic and Latin content in WhatsApp.
- **Enhancement:** Advanced Metadata Parsing – Improved fallback logic for identifying custom order and user meta placeholders across all modules.
- **Enhancement:** Notifications Builder – Integrated the new exhaustive placeholder engine and "N/A" fallback logic to ensure 100% template accuracy and prevent empty/broken message gaps during automated sends.
- **Enhancement:** Restored "Choose WhatsApp Sender" section to the WhatsApp Web tab and added a "Connect WhatsApp" guidance card for offline instances.
- **Enhancement:** Advanced Phone Field settings upgraded with modern toggles and instant, color-coded status indicators (removing cluttered text labels).
- **Enhancement:** Improved SMTP settings visibility; the Save button is now persistent even when SMTP is disabled for easier management.
- **Enhancement:** Cleaned up WooCommerce "My Account" and "Checkout" pages by removing duplicate registration forms and standard login fields when using Wawp forms.
- **Enhancement:** Unified all "Docs" and "Help Center" links across sender settings to point to a single, relevant tutorial article.
- **Enhancement:** Added a mobile sidebar toggle button to the top bar for better responsiveness.
- **Enhancement:** Fixed delayed visibility of tabs on the settings page.
- **Enhancement:** Revamped System Status UI with a 3-tier status system (Red/Orange/Green).
- **Enhancement:** Added manual refresh capability and relocated action buttons for better UX.
- **Enhancement:** Refined "Update Available" banner design for better visibility and consistency.
- **Enhancement:** Added immediate user feedback messages (toasts) for instance actions (Check Status, Send Test, Delete).
- **Enhancement:** Refactored WhatsApp History settings into a Modal popup to maximize workspace.
- **Enhancement:** Enriched Bulk Campaigns table with detailed columns: Type, Audience, Starts, and Frequency.
- **Enhancement:**Authentication Pages Settings UI with a new premium "Chic" design.
- **Fix:** Resolved critical sending issues in Notifications Builder where mixed Arabic/English text would break message layout or cause text distortion, now fully protected by Unicode isolation markers.
- **Fix:** Ensured consistent CSS styling across all history pages by optimizing asset enqueuing.
- **Fix:** Prevent API blocking by other plugins (e.g., Codevz Plus) by adding bypass parameter to all external API requests.
- **Fix:** Resolve country flag image loading issues and plugin conflicts by using unique asset handles and absolute paths.
- **Performance:** Fine-tuned AJAX interactions for instant UI feedback and synchronized Senders saving with the global footer state.
- **Performance:** Dynamic Status Bar (Green Bar) for Integration settings with detailed guidance text.
- **Performance:** "Create & Set" button now becomes "View Page" when a page is active.
- **Performance:** New status indicators for Notification Preferences and Phone Bar visibility.
- **Performance:** Optimized "Sender Settings" page to load instantly by deferring system status checks.
- **Performance:** Implemented asset cleanup to dequeue third-party plugin scripts/styles from WAWP admin pages.
- **Performance:** Optimized Block Manager to lazy-load dependencies (intl-tel-input) only when accessed, reducing initial page load weight.
- **Performance:** Refactored capability checks to use specific 'WAWP_CAPABILITY' ('manage_wawp') instead of generic 'manage_options' for better role management and security.
- **New:** Added Meta API support to Bulk Campaigns - send campaigns via WhatsApp Meta API alongside WhatsApp Web and Email.
- **New:** Added live search functionality to Bulk Campaigns table - instantly filter campaigns by name or ID.
- **New:** Added bulk delete capability to Bulk Campaigns - select and delete multiple campaigns at once with confirmation.
- **New:** Added checkbox selection to Bulk Campaigns table with "Select All" functionality.
- **New:** Added Admins WhatsApp Notifications option in Sender Settings to allow selecting specific instances for admin alerts.
- **New:** Added {{wc-order-items}} placeholder - displays order products with quantities and prices separated by commas (e.g., "1. Product Name x 2 = $ 50.00, 2. Another Product x 1 = $ 25.00").
- **New:** Added {{wc-order-items-br}} placeholder - displays order products with quantities and prices, each on a separate line with line breaks.
- **Enhancement:** Improved Create Campaign interface - channels now work as mutually exclusive options (only one channel can be active at a time).
- **Enhancement:** Enhanced UI visibility in Create Campaign - automatically hide irrelevant sections and dividers based on selected channel.
- **Enhancement:** Improved campaign dashboard with cleaner interface showing only active channel settings.
- **Enhancement:** Updated channel selection description to include Meta API as a valid standalone option.
- **Enhancement:** Fixed Meta API logging when multiple channels are enabled together.
- **Enhancement:** Implemented intelligent routing logic to send Admin notifications via the dedicated Admin-selected instance.
- **Enhancement:** Added admin_selected_instance_ids column to the notif_global database table to store admin preferences.
- **Enhancement:** Renamed the existing notification selector to Users WhatsApp Notifications to clearly distinguish between customer and admin sender lines.
- **Enhancement:** Applied Select2 styling to the new Admin Notifications dropdown for a consistent multi-select UI.
- **Enhancement:** Added fallback logic: if no specific Admin instance is selected, the system defaults to the User instance.
- **Bug Fixes:** Fixed a critical issue in the Notifications Builder where "Channels" and "Recipients" values were not saving due to a duplicate hidden input field.
- **Bug Fixes:** Fixed indentation issues in Meta API send_meta_message function that caused logging errors.
- **Bug Fixes:** Resolved JavaScript validation to properly recognize Meta API as a valid channel option.
- **New:**: Added Country Code +972 for Palestine 48 Lands
- **New:**: Added Country Code direction Auto /Right / Left (OR Based on site language) 
- **New:**: Supoort Link Privew on send by Wawp API any notifaction
- **New:**: Set Online Status for Whatsapp when before Send by Wawp API
- **New:**: Added the ability to upload a custom image instead of a product image to Notifications Builder
- **New:**: Added ability to customize the "Intro" and "Outro" text on the Phone Verification Bar.
- **New:**: Added a customizable WhatsApp OTP message template for phone verification.
- **Enhancement:**: Carrier Lookup Vendor File for Advanced Phone Field
- **Enhancement:**: updated API Send method for notifactions , bulk campagins and WhatsApp Messages History
- **Enhancement:**: Improving the connection between the plugin and Wawp.net
- **Enhancement:**: Added smart auto-selection logic for WhatsApp Senders to automatically switch to an available instance if the selected one goes offline or is deleted
- **Enhancement:**: Implemented immediate cache clearing on instance status updates to ensure "Sender Settings" dropdowns update instantly
- **Enhancement:**: Improved the "Phone Verification Bar" settings UI by grouping the toggle and customization fields into a single, cleaner card.
- **Enhancement:**: Refactored admin settings code to separate CSS from PHP logic for better performance and layout stability.
- **Bug Fixes:**: Fix Send images when send by Wawp API
- **Bug Fixes:**: Fix the issue of Multilingual Notifications being disabled when saving notifications
- **Bug Fixes:**: Fix the problem of sending messages when there is an image in the message in Notifications Builder
- **Bug Fixes:**: Fix the problem of product selection in Product Filter for Notifications Builder (The results could not be loaded.) 
- **Bug Fixes:**: Fix slow email sending issues in Bulk Campaigns
- **Bug Fixes:**: Fix the "Security check failed. Please go back and try again" error when saving or editing a current campaign in Bulk Campaigns
- **Bug Fixes:**: Fix the problem of fetching products in the product targeting step of Bulk Campaigns
- **Bug Fixes:**: Fix switch buttons for Enable Field on Signup Form and Required Field in the Registration Form
- **Bug Fixes:**: Fix the issue of icons not loading for the Manage Custom Field in the Registration Form
- **Bug Fixes:**: Fix the issue where "Choose WhatsApp Sender" showed "No online instances found" despite having connected instances
- **Bug Fixes:**: Fix the problem where page refresh would show stale "Offline" status after an instance successfully connected

= Version: 4.2 – Date: 14-12-2025 =
- **Enhancement:** Code optimization.

= Version: 4.1.1 – Date: 07-12-2025 =
- **Enhancement:** Code optimization.

= Version: 4.1.0 – Date: 04-12-2025 =
- **Bug Fixes:** get_page_by_title() has been deprecated since WordPress version 6.2.0. replaced with WP_Query instead.
- **Enhancement:** Remove unused assets Css/JS files
- **Enhancement:** The international phone number input has been updated to the latest version and moved to the add-on files instead of requiring it remotely.
- **Enhancement:** Code optimization.
- **Bug Fixes:** CSS issues in the OTP login form on the main page have been fixed.
- **Bug Fixes:** JS issues in the Notifications Builder feature have been fixed.

= Version: 4.0.5.1 – Date: 01-11-2025 =
- **Bug Fixes:** Remix icons not load on frontend and backend
- **Bug Fixes:** Can't enable Passwordless Login , Registration Form Builder , WooCommerce Checkout Verification

= Version: 4.0.5 – Date: 30-10-2025 =
- **New:** Abandoned Cart addon is now available.
- **New:** The official Meta API is now available.
- **New:** Meta API LOG has been added.
- **New:** Carrier Lookup for Advanced Phone Field.
- **New:** WhatsApp Check for Advanced Phone Field.
- **New:** A new AI-powered support center is available to answer any questions regarding the plugin.
- **New:** Supporting new Flags for Advanced Phone Field, including the Syrian flag.
- **New:** Remote Support has been enabled for secure access from the support service to your site to resolve problems without the need to send the password every time via a security key that you generate yourself and send to support.
- **Enhancement:** Phone Fields support now Gutenberg Editor.
- **Enhancement:** Dashboard has been redesigned and linked to tools and services.
- **Enhancement:** The sidebar has been redesigned for greater clarity when managing the plugin.
- **Enhancement:** Bulk Campaigns has been redesigned.
- **Enhancement:** New diagnostic information has been added within Wawp System Status.
- **Enhancement:** 3x better performance in plugin setup and management.
- **Enhancement:** 5x more stable message sending.
- **Enhancement:** intl tel input library has been updated for version 25.xx
- **Enhancement:** Passwordless Login has been improved
- **Enhancement:** Registration Form has been improved
- **Enhancement:** Improved all translation files associated with the plugin
- **Bug Fixes:** CSS issues in the OTP login form on the main page have been fixed.
- **Bug Fixes:** JS issues in the Notifications Builder feature have been fixed.

= Version: 4.0.3.12 – Date: 15-08-2025 =
- **New:** Add two button in whatsapp frontend chat widget direct whatsapp and scan qr to open conversitaion
- **New:** Add trigger & channels icon in card header
- **New:** Add trigger name in card header
- **New:** Add recieptant and waiting time badges in card header
- **Enhancement:** UX Writing
- **Enhancement:** Ui across plugin
- **Enhancement:** Notification card ui & ux
- **Enhancement:** Email & WhatsApp History pages ui design
- **Enhancement:** WhatsApp History Auto Resend function
- **Enhancement:** API updated
- **Enhancement:** Code optimization
- **Bug Fixes:**  Send Woocommerce notification more than once when sending is set to timed and not instan.


= Version: 4.0.3.11 – Date: 09-08-2025 =
- **New:** Add a timer when sending an OTP to reduce the number of times the OTP is requested for the login page.
- **New:** Add a feature to redirect the user to the Signup form and automatically retrieve the number he entered if he is not registered on the site.
- **Enhancement:** System info page reduces information fetching to improve site response speed.
- **Enhancement:** The cron jobs interval spacing in the plugin has been adjusted and the notification sending efficiency has been improved.
- **Enhancement:** Code optimization.


- **New:** Added "Add Unique IDs/Message IDs" to the dashboard to switch to sending using Campaign Builder & Notifications to protect numbers more when sending heavily.
- **Bug Fixes:**  Send Timing option fix > Notifications Bulider The problem is that all times are sent immediately.
- **Enhancement:** For Notifications Bulider Code
- **Enhancement:** Code optimization.

= Version: 4.0.3.10 – Date: 04-08-2025 =
- **New:** Added "Add Unique IDs/Message IDs" to the dashboard to switch to sending using Campaign Builder & Notifications to protect numbers more when sending heavily.
- **Bug Fixes:**  Send Timing option fix > Notifications Bulider The problem is that all times are sent immediately.
- **Enhancement:** For Notifications Bulider Code
- **Enhancement:** Code optimization.

= Version: 4.0.3.9 – Date: 31-07-2025 =
- **Enhancement:** Updated Checkout OTP Placeholders for Gusts and linked to Checkout form
- **Enhancement:** Improved placeholders for all others Classes
- **Enhancement:** Translations updated for all languages.
- **Enhancement:** Send test email smtp
- **Enhancement:** Improve notification sending if Send Timing filter is set
- **Deprecated:** The QR linking from within the plugin has been removed and will be improved and released again soon.


= Version: 4.0.3.8 – Date: 31-07-2025 =
- **New:** Delivery Status you can know got message status (sent, Delivered, Read) 
- **New:** New whatsapp log data (Total Logged,WhatsApp Sent,Unique Reads,WhatsApp Pending,Send Errors,Unique Recipients)
- **Added:** Dangerous Zone to clear any wawp table on one click
- **Enhancement:** improved get table status on System status info page



= Version: 4.0.3.7 – Date: 30-07-2025 =
- **New:** Show **Typing...** on Whatsapp before Send otp or any other message to improve user experience.
- **Enhancement:** On load check if db have any Missing Columns to fix it
- **Enhancement:** Wawp API to send Image Case Send Product Image on Notifications Bulider
- **Enhancement:** Code optimization


= Version: 4.0.3.6 – Date: 29-07-2025 =
- **Enhancement:** Updated Wawp system info data
- **Enhancement:** Improved Auto ReSend and log status
- **Bug Fixes:** send message from users.php to single user
- **Bug Fixes:** [object Object] in notifaction builder
- **Bug Fixes:** Improved Css on Checkout page Case some fildes removed

= Version: 4.0.3.5 – Date: 27-07-2025 =
- **Enhancement:** Whatsapp log updated - removed old status from resend
- **Bug Fixes:** Update Auto check instance if online/offline
- **Bug Fixes:** Disable woocommerce normal login form when Wawp replace Wc option enabled
- **Bug Fixes:** Fix get auto instances data


= Version: 4.0.3.4 – Date: 26-07-2025 =
- **Enhancement:** API Updated
- **Enhancement:** Whatsapp log updated with new status.
- **Bug Fixes:** fix send product image with notifaction.


= Version: 4.0.3.3 – Date: 25-07-2025 =
- **Enhancement:** Improve Wawp Form Display Within Woodmart Theme
- **Enhancement:** Improved login/registration page feature
- **Enhancement:** Whatsapp log updated with new status.

= Version: 4.0.3.2 – Date: 24-07-2025 =
- **Enhancement:** API updated
- **Enhancement:** Code optimization
- **Enhancement:** Get status online

= Version: 4.0.3.1 – Date: 24-07-2025 =
- **Enhancement:** API updated
- **Enhancement:** Code optimization

= Version: 4.0.2 – Date: 17-07-2025 =

- **New:** Global feature toggles in Main Admin — enable/disable any plugin feature (previously limited to OTP & notifications).
- **New:** New: SMTP email sending support in Sender Settings.
- **New:** New: In‑plugin WhatsApp QR scan (no external window required).
- **New:** New: Import WhatsApp Number directly from the Wawp system.
- **New:** New: Per‑account control to allow QR & number import only on your account (great for resellers).
- **Enhancement:** Blocking tools moved to Sender Settings and improved; auto country‑code prepend when blocking numbers.
- **New:** System Info detects problematic database entries.
- **New:** Full cron health check built in (no extra plugin needed).
- **New:** 20+ diagnostic tests with one‑click manual fixes (single or bulk).
- **New:** Auto Fixer repairs common issues automatically (e.g., missing cron stopping sends).
- **New:** Unified Notifications panel replaces 3 separate areas.
- **Enhancement:** Configure triggers with instant or delayed delivery.
- **Enhancement:** Choose recipients per notification (admin, user, or both).
- **Enhancement:** Select delivery channel: WhatsApp only, Email only, or both.
- **Enhancement:** Conditional notifications by country, payment method, or product.
- **Enhancement:** User opt‑out controls for privacy / spam reduction.
- **Enhancement:** Auto‑attach product images in outgoing notifications when available.
- **Enhancement:** Improved OTP first‑attempt delivery success.
- **New:** Add custom fields to the registration form.
- **New:** Redirect wp-login.php to custom login page for added security.
- **New:** Redirect logged‑out visits to my-account toward your WooCommerce account/login flow.
- **Enhancement:** Full control over login/registration page configuration.
- **Enhancement:** WooCommerce login/register form replacement now optional (previously forced).
- **Enhancement:** Toggle Phone Verification Bar visibility on My Account page without affecting shortcode usage.
- **Enhancement:** Toggle Notification Preference buttons on frontend (shortcodes continue to work).
- **New:** Consolidated shortcode list in admin for quick copy/paste.

- **Enhancement:** WhatsApp Notification Logs — smarter Auto Resend logic.
- **New:** Auto Clear old WhatsApp logs (daily / monthly / yearly).
- **Enhancement:** Toggle Auto Resend on or off.
- **New:** Email Notification Logs section with delivery & read statistics.
- **Enhancement:** Setup Wizard performance and UX improvements.
- **New:** Wizard status panel shows site health, issue counts, and quick link to System Info.
- **Misc:** Numerous minor improvements and refinements throughout the plugin.

= Version: 4.0.1.11 – Date: 21-05-2025 =

- **New:** Sending statistics within user and manager notifications and follow-up
- **Enhancement:** Update WhatsApp number displayed for the chat button in the admin panel
- **Enhancement:** JS files in the manager folder have been reorganized, renamed and removed unnecessary ones.
- **Enhancement:** Code optimization
- **Bug Fixes:** fatal error :Parse error: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR) in /wp-content/plugins/automation-web-platform/includes/class-wawp-menu.php on line 236
- **Bug Fixes:** Parse error: error /wp-content/plugins/automation-web-platform/includes/class-wawp-phone-verification-bar.php on line 279  in  WAWP_Phone_Verification_Bar->enqueue_assets()


= Version: 4.0.1.10 – Date: 18-05-2025 =

- **New:** Added confirmation number bar to account area to confirm number by user from his account area use shortcode [wawp_phone_verification_bar]
- **Enhancement:** added auto load to make plugin load faster
- **Enhancement:** imoproved arabic translation
- **Enhancement:** Code optimization

Version: 4.0.1.9 – Date: 02-05-2025
   - **Enhancement:** Code optimization


= Version: 4.0.1.8 – Date: 26-03-2025 =
- **Enhancement:** Record OTP in the Log and support the Auto resend feature for OTP
- **Enhancement:** Code optimization

= Version: 4.0.1.7 – Date: 09-03-2025 =
Fix: Country code not load on signup page 

= Version: 4.0.1.6 – Date: 09-03-2025 =
Emergency update for auto resend

= Version: 4.0.1.5 – Date: 09-03-2025 =
- **New:** Woocommerce Gutenberg react field is supported to interact with country code
- **New:** The Auto Resend feature has been added with the ability to specify a number of times to try to send before stopping to ensure 100% sending.
- **New:** Delete log button added
- **New:** Added the ability to specify a sender for the notification log that does not work separately in case Woocommerce is not activated
- **New:** Spanish language added
- **Enhancement:** Improved advanced phone number feature
- **Enhancement:** Add option to convert country code from left to right according to RTL/LTR
- **Enhancement:** Tagify field block numbers is supported
- **Enhancement:** The design of the entire Plugin has been improved.
- **Enhancement:** Added enable and disable feature for basic support fields for country code
- **Enhancement:** 48 new countries were supported that were not supported, as well as the 48 lands inside the Palestinian
- **Enhancement:** The WhatsApp Chat Button feature has been re-divided to ensure better management of features and the icon has been hidden if no contact number has been added.
- **Enhancement:** Log statuses have been improved to display more accurate information.
- **Bug Fixes:** The clear filters button in the Log has been fixed.
- **Bug Fixes:** The problem of duplicating sending templates in the database when activating the plugin every time has been solved.
- **Bug Fixes:** Fixed issue where JavaScript files for intl tel input were not disabled when all country codes were disabled

= Version: 4.0.1.4 – Date: 24-02-2025 =
- **Enhancement:** code optimization

= Version: 4.0.1.3 – Date: 14-02-2025 =
- **New:** Adding The ability to set up “Choose the sender” has been added for all items from the Add sender page.
- **Bug Fixes:** The problem of sending OTP for a new account registration form has been fixed.
- **Enhancement:** The Sync Users button now deletes the + and 00 from the beginning of numbers, and the verified status of the users is kept as it was when synchronizing.
- **Enhancement:** When the number is updated by the administrator or user, the status is changed to unverified, and the login number and WooCommerce notification number are updated at the same moment in the user’s account.
- **Enhancement:** When the user login using WhatsApp OTP, the user will now be verified and his number status will change to verified.
- **Enhancement:** The login form has been integrated into the main Woocommerce form to reduce the need to use Shortcode (useful for people who rely on default login forms in their themes).
- **Enhancement:** Users w/ Phone number has been improved to fetch the number of accounts that contain numbers only.
- **Enhancement:** code optimization


= Version: 4.0.1.2 – Date: 12-02-2025 =
- **New:** Adding a field for the login phone number and notification number to the user account within my-account/edit-account
- **New:** Adding the ability for the WordPress administrator to update the status of a number from verified to unverified and vice versa
- **New:** Supports default Woocommerce login forms and replaces them with Wawp forms
- **Added:**  translations (Portuguese - French - Hindi - Italian - Spanish)
- **Enhancement:** Country code entry has been improved
- **Enhancement:** code optimization

= Version: 4.0.1.1 – Date: 07-02-2025 =
- **New:** Support Custom fields for WooCommerce Order meta
- **New:** Support Custom fields for WordPress User
- **Added:** Arabic Translate with Rtl
- **Bug Fixes:** otp not sent if woocommerce not active.
- **Bug Fixes:** images not saved after uploaded for woocommerce notifcation.

= Version: 4.0 – Date: 01-02-2025 =
- **Enhancement:** code optimization
- **Enhancement:** Blocking numbers has been made at the level of dealing with the site, such as entering as well, and is not limited only to the order page
- **Enhancement:** Enable/disable option to automatically detect country code is supported to reduce data consumption

= Version: 4.0 – Date: 31-01-2025 =
- **New Release Beta Version
- **New: ** OTP Login now had more settigns to make professional login form
- **New: ** OTP Signup now had more settigns to make professional login form
- **New: ** Chat widget feature with the ability to have multiple numbers and create a QR code directly for each number. It also supports adding links to other social media outlets.
- **New: ** The notification features have been reprogrammed to work using cron and not through the user’s device, using js to execute requests, orders, and any other operations faster.
- **New: ** Multiple employees have been supported to receive administrator notifications. Previously, they were assigned to only one number. Now you can specify unlimited numbers to receive notifications.
- **New: ** Sender selection is supported. Select the Wawp account ID to use to send notifications to the client or manager and the OTP for each feature separately for more customization.
- **New:** Follow-up message feature has been redeveloped, and now you can send a message to any case after any period, such as a minute, an hour, a day, or a custom time to talk to your customers better based on the status of the order.
- **New:** A Dashboard page with statistics is supported and added to better manage the plugin
- **New:** ability to link more than one number to the site has been supported with an unlimited number. Previously, you could add only two numbers
- **New:** ability to send a customized message according to the user is supported
- **New:** OTP activation feature is supported on the Checkout page when choosing a specific payment gateway or shipping gateway
- **New:** An option has been added to support any phone number field using the country code library built into Wawp
- **Enhancement:** notification history has been improved and more filters have been added to ensure greater effectiveness
- **Enhancement:** code optimization
   
= Version: 3.0.19 – Date: 15-12-2024 =

- **Enhancement:** Complete code optimization

= Version: 3.0.19 – Date: 15-12-2024 =
- **Enhancement:** Complete code optimization

(For older versions, please see the complete changelog on Wawp.net)