Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/zeeshanraza-official/wpcalibrate-order-alerts-whatsapp/releases/download/v1.0.0/wpcalibrate-order-alerts-whatsapp-1.0.0.zipAutomated, real-time WooCommerce order alerts delivered directly to customers and store staff via the official Meta WhatsApp Cloud API.
📖 About
WPCalibrate Order Alerts for WhatsApp connects your WooCommerce store directly to Meta's official WhatsApp Business Cloud API (Graph API v21.0).
Unlike traditional notification plugins that force you to subscribe to costly middleman aggregators with per-message markups, monthly platform fees, and unpredictable delivery delays, this plugin connects straight from your WordPress server to Meta's enterprise infrastructure. Enjoy instantaneous message dispatch, maximum reliability, and direct billing at official Meta utility messaging rates.
✨ Features
- Direct Meta Cloud API Integration: Communicate directly with
https://graph.facebook.comwithout middleman gateways (Twilio, 360dialog, Gupshup, etc.). - Customer Lifecycle Notifications: Automated WhatsApp order alerts for:
- Order Created / Pending Payment
- Order Processing / Payment Confirmed
- Order On-Hold
- Order Completed / Shipped
- Order Cancelled
- Order Refunded
- Order Customer Note Added
- Staff & Admin Real-Time Alerts: Notify store owners and multiple fulfillment staff on new orders, payment failures, and cancellations.
- Multi-Language Template Engine: Send localized template variants in English (
en_US) and Bangla (bn) with automatic order locale resolution and English fallback. - Asynchronous Background Delivery Queue: Built entirely on WooCommerce Action Scheduler (
wpcalibrate_wa_send_notification) to ensure customer checkout speed is 100% unaffected. - Deterministic Idempotency Protection: Cryptographic SHA-256 idempotency keying prevents duplicate alerts during concurrent status changes while permitting valid transition loops.
- Smart Stepped Retries: Automatically retries transient network timeouts and Meta rate limits (
130429) at stepped intervals (120s, 600s), while gracefully halting on permanent authorization (190) or invalid recipient (131030) errors. - Checkout Consent Architecture: Opt-in WhatsApp consent checkbox fully compatible with both WooCommerce Classic Checkout and modern WooCommerce Checkout Blocks.
- International Phone Normalization: Automatically validates and sanitizes recipient phone numbers into the global E.164 standard (
+[country][national_number]) using store base country fallbacks. - High-Performance Order Storage (HPOS): 100% declared compatibility and tested against WooCommerce Custom Order Tables.
- Dedicated Operational Logs: Independent database table (
wp_wpcalibrate_wa_logs) with paginated search, event filtering, manual retry triggers, and automated data retention pruning. - Security & Privacy Hardened: Access tokens and sensitive credentials are encrypted and masked; customer phone numbers are masked in logs (
+88017****5678) for GDPR/data protection compliance.
⚙️ Architecture & Method
[ WooCommerce Order Event ]
│
▼
[ Order Event Listener ] ──▶ [ Phone Normalizer (E.164) ]
│
▼
[ Consent & Preference Gate ] ──▶ (Halt if customer opted out)
│
▼
[ Composite Idempotency Generator ]
│
▼
[ WooCommerce Action Scheduler ] ──▶ (Immediate background queue)
│
▼
[ Meta WhatsApp Cloud API ] ──▶ [ Customer & Staff WhatsApp ]
│
┌───────┴───────┐
▼ ▼
[ Success ] [ Transient Error? ] ──▶ [ Stepped Retry Engine ]
📋 Requirements
| Component | Minimum Version | Recommended Version |
|---|---|---|
| WordPress | 6.2+ | Latest (6.7+) |
| WooCommerce | 8.0+ | Latest (9.0+) |
| PHP | 8.2+ | 8.2 or 8.3 |
| Meta WhatsApp Cloud API | Graph API v21.0 | System User Permanent Token |
🚀 Installation & Setup Guide
1. Installation
- Download the latest
wpcalibrate-order-alerts-whatsapp-1.0.0.zipfrom Releases. - Go to WordPress Admin → Plugins → Add New → Upload Plugin.
- Choose the ZIP file and click Install Now, then Activate Plugin.
2. Meta WhatsApp Cloud API Configuration
- Log in to Meta for Developers and create a Business App.
- Under Products, add WhatsApp.
- Under WhatsApp → API Setup, locate:
- Phone Number ID
- WhatsApp Business Account ID (WABA ID)
- In Meta Business Settings, navigate to Users → System Users:
- Create a System User (Admin role).
- Assign Assets: Add your WhatsApp Business Account with Full Control.
- Generate a permanent System User Access Token with the
whatsapp_business_messagingandwhatsapp_business_managementpermissions.
- In your WordPress Dashboard, navigate to WPCalibrate → Order Alerts for WhatsApp → WhatsApp API:
- Enter your Phone Number ID, WABA ID, and Access Token.
- Click Save API Credentials, then click Test API Connection to verify live communication with Meta.
3. Message Templates Configuration
WhatsApp requires business-initiated alerts to use pre-approved Meta message templates:
- In Meta WhatsApp Manager → Message Templates, create utility templates for your desired order events.
- In WordPress Admin → Message Templates:
- Enter the exact approved template names.
- Map your ordered body parameters (
{{1}},{{2}}, etc.). - Configure language variants for English (
en_US) and Bangla (bn) as needed.
🏷️ Supported Dynamic Variables
You can map any of the following tokens into your Meta message template parameters:
| Variable Token | Description | Example Output |
|---|---|---|
{customer_name} |
Customer's full billing name | John Doe |
{customer_first_name} |
Customer's first name | John |
{order_number} |
WooCommerce Order ID / Number | 1042 |
{order_status} |
Formatted status title | Processing |
{order_total} |
Formatted total with currency | $185.50 |
{order_currency} |
3-letter currency code | USD |
{order_date} |
Localized order creation date | 2026-10-21 |
{items} |
Item summary list | Wireless Headphones x 1, USB-C Cable x 2 |
{item_count} |
Total item count | 3 |
{shipping_address} |
Formatted delivery address | 123 Main St, Springfield, IL |
{payment_method} |
Gateway title | Credit Card / Stripe |
{customer_note} |
Note provided at checkout | Please leave package at front door |
{order_view_url} |
Customer account order URL | https://store.com/my-account/view-order/1042 |
{store_name} |
WordPress site title | My Demo Store |
🔄 Dashboard Updates & GitHub Updater Compatibility
This plugin is configured with native GitHub updater headers:
GitHub Plugin URI: https://github.com/zeeshanraza-official/wpcalibrate-order-alerts-whatsapp
Primary Branch: main
When new releases or tags are published to this repository, WordPress sites utilizing Git Updater or GitHub-compatible deployment tools will automatically detect updates and allow one-click upgrades directly from the WordPress Admin → Plugins dashboard.
📝 Changelog
[1.0.0] - 2026-10-21
- Initial Production Release.
- Official Meta WhatsApp Cloud API integration with Graph API v21.0.
- Customer order lifecycle notifications (Created, Processing, On-Hold, Completed, Cancelled, Refunded, Customer Note).
- Store manager & staff notifications with multi-recipient phone support.
- English & Bangla template localization with automatic fallback.
- Asynchronous background delivery queue powered by WooCommerce Action Scheduler.
- Deterministic composite idempotency service with transition counters.
- Stepped exponential retries with classification of transient vs permanent errors.
- Classic Checkout & WooCommerce Checkout Blocks consent opt-in checkbox.
- International E.164 phone normalizer with country calling code mapping.
- High-Performance Order Storage (HPOS) declared compatibility.
- Dedicated custom database table (
wp_wpcalibrate_wa_logs) with paginated filters and batch retention pruning. - Universal button alignment and color synchronization across all admin tabs.
📄 License & Credits
Distributed under the GNU General Public License v2 or later (GPL-2.0-or-later). See LICENSE.txt for complete details.
Developed & Maintained by WPCalibrate. GitHub Repository maintained by Zeeshan Raza.
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.