內容簡介
這個外掛是 Slack 外掛的擴充功能,可以讓您在銷售完成時將通知發送到 Slack 頻道。
如果在整合設定中勾選了「當 EDD 中的付款標記為完成時」,新活動將會顯示在整合設定中,並且當有銷售完成時會發送通知。
您可以透過 slack_edd_complete_purchase_message 過濾器來修改消息。該過濾器按以下順序接收以下參數:
$message — 要發送的預設字串
$payment_id — 付款 ID
$total — 以 float 表示的總金額
$formatted_price — 根據您的 EDD 設定格式化的價格
$payment_meta — 付款資訊
$user_info — 進行購買的使用者
$cart_items — 購買的下載清單
$payment_url — 付款的管理員 URL
這個外掛的開發在 GitHub 上進行,歡迎提交 Pull 要求。
外掛標籤
開發者團隊
原文外掛簡介
This plugin is an extension to Slack plugin that allows you to send notifications to Slack channels whenever sales are made.
The new event will be shown on integration setting with text When a payment in EDD is marked as complete. If checked then notification will be delivered once sales are made.
You can alter the message with slack_edd_complete_purchase_message filter. The filter receives following parameters (ordered by position):
$message — Default string of message to be delivered
$payment_id — Payment ID
$total — Total in float
$formatted_price — Nicely formatted price based on your EDD setting
$payment_meta — Payment information
$user_info — User whom made the purchase
$cart_items — List of purchased downloads
$payment_url — Admin URL for this payment
Development of this plugin is done on GitHub. Pull requests are always welcome.
