WC Sale Discord Notifications
开发者 |
cralcactus
|
更新时间 |
2025年9月1日 00:02 |
PHP版本: |
7.4 及以上 |
WordPress版本: |
6.8.2 |
版权: |
GPLv3 |
版权网址: |
版权信息
|
详情介绍:
This plugin sends a Discord notification for WooCommerce order events. It uses native WordPress/WooCommerce APIs and supports WooCommerce Custom Order Tables (v8+). 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.
安装:
- Download this plugin or clone the repo into
/wp-content/plugins/wc-sale-discord-notifications
.
- Activate the plugin via Plugins → Installed Plugins.
- Go to WooCommerce → Discord Notifications.
- Configure your settings.
更新日志:
3.0
2.3
- Added support for custom product fields in Discord notifications.
- New "Custom Fields" toggle in settings—when enabled, product-level custom fields (from add-ons/APF) are included in order item details.
2.2
- Implemented per-status duplicate protection using order meta instead of a global flag.
- Removed redundant duplicate-check logic and double log writes.
- Added sanitization callbacks for all plugin options to improve data safety.
- Made Discord webhook POST asynchronous (
blocking => false
) with basic error handling.
- Improved status change hook to only trigger on selected statuses.
- Enhanced embed field building with formatted totals, safe hex color handling, and image fallback.
- Updated “Tested up to” and “WC tested up to” versions.
2.1
- Admin setting to choose what fields to include in Discord messages.
- Added protection against duplicate notifications using log tracking.
- Per-status webhook URL support.
- Full compatibility with WooCommerce 8+ (custom order tables).
2.0
- Added option to exclude product image from embeds.
1.9
- Added notifications for changes in order status.
1.8 and below
- Initial features and webhook sending.