[WordPress] 外掛分享: WC Sale Discord Notifications

首頁外掛目錄 › WC Sale Discord Notifications
100+
安裝啟用
★★★★★
5/5 分(5 則評價)
16 天前
最後更新
問題解決
WordPress 6.2+ PHP 8.0+ v3.1.2 上架:2024-08-13

內容簡介

WC Sale Discord Notifications 外掛可為 WooCommerce 訂單事件發送 Discord 通知,支援 WooCommerce 自訂訂單資料表,並可自訂通知內容及觸發狀態,提升商店管理效率。

【主要功能】
• 自訂通知訊息欄位
• 支援多個訂單狀態觸發
• 可選擇不顯示產品圖片
• 每個狀態可設定不同的 webhook URL
• 防止重複發送通知
• 兼容 WooCommerce 訂閱功能

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WC Sale Discord Notifications」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin sends a Discord notification for WooCommerce order events. It uses native WordPress/WooCommerce APIs and supports WooCommerce Custom Order Tables (HPOS). You can choose which order statuses trigger notifications, customize which details are included, set different webhook URLs and embed colors per status, and optionally remove product images from the embed.
Features

Customizable message fields:

Order Status
Payment Info
Product Lines (names, qty, price)
Product Options (add-ons / custom fields)
Order Date
Billing Info
Transaction ID
Order Notes (customer and/or internal)

Initiating payment notification when a customer begins checkout (pending)

Customer notes only toggle – exclude internal/admin notes when Order Notes is included
Option to disable product image in the embed
Per-status webhook URL and embed color
Duplicate-send protection via order meta (120s deduplication for initiating, new, and update)
Automatic embed size trimming for Discord’s 6000 character limit
Built using native WordPress/WooCommerce APIs
Compatible with WooCommerce Custom Order Tables (HPOS)
Subscription-aware titles when WooCommerce Subscriptions is active (New subscription, Subscription Renewal)

Requirements

WordPress 6.2 or higher (tested up to 6.9.4)
WooCommerce 8.5 or higher (tested up to 10.6.1)
PHP 8.0 or higher

Configuration

Webhook URL
Enter your Discord Webhook URL (from your Discord server settings).

Order Status Notifications
Choose which order statuses should trigger notifications. You can also:

Add different webhook URLs per status
Choose unique embed colors

Embed Fields
Select which fields should appear in the Discord embed (status, payment info, items, custom product fields, order date, billing info, transaction ID, order notes).

Customer notes only
When Order Notes is included, show only customer notes (exclude internal/admin notes).

Disable Product Image
Toggle this to prevent the product image from appearing in the embed.

Send notification for Initiating payments
When enabled, sends “Initiating payment” for pending orders, then “New Order!” when payment completes (processing).

Duplicate Protection
To prevent duplicate Discord messages (for example, if the thank-you page is refreshed), the plugin stores sent-event metadata on each order (_discord_sent_*). Initiating, new, and update notifications all use 120-second time-based deduplication. Before sending, the plugin checks whether that event was already sent within the last 120 seconds and skips if so. This ensures each notification is only sent once per order event.
Usage

After installing and activating the plugin, go to WooCommerce → Discord Notifications.
Paste your Discord Webhook URL and select which statuses should send notifications.
Choose which fields to include, whether to show product images, and whether to limit order notes to customer notes only.
Save your settings.

Author
Cral_Cactus
Support
Found a bug or have a suggestion? Open an issue on the GitHub repo: https://github.com/Cral-Cactus/wc-sale-discord-notifications/issues

延伸相關外掛

文章
Filter
Apply Filters
Mastodon