[WordPress] 外掛分享: Slack EDD

首頁外掛目錄 › Slack EDD
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
尚無評分
4357 天前
最後更新
問題解決
WordPress 3.6+ v0.1.0 上架:2014-04-12

內容簡介

這個外掛是 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 要求。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Slack EDD」→ 直接安裝(推薦)

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon