[WordPress] 外掛分享: Vanilla Bean Slack Hooker

前言介紹

  • 這款 WordPress 外掛「Vanilla Bean Slack Hooker」是 2015-12-20 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2025-04-21,距離現在已有 13 天。
  • 外掛最低要求 WordPress 5.4 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

vsmash |

外掛標籤

api | slack | alerts | message | webhook |

內容簡介

*將 WordPress 的自動通知發送至您的 Slack / Mattermost 應用頻道和 Webhooks 中。

您可以以任何方式整合此外掛,不受限制。

它支持所有其他 Vanilla Bean 外掛,並且可用於「在幕後」使用和短代碼存取。

一些短代碼範例:
[slackhooker text="這是一則 WordPress 的訊息"]

或者

[slackhooker text="這是一則訊息" channel="general" username="我的 WordPress"]

或者

[slackhooker text="這是一則訊息" channel="https://myorg.slack.com/services/xxoxlsodsfsfsdfds#channelname" username="我的 WordPress"]

訊息將排入 PHP 處理序的最後以確保不會中斷其他網頁處理,但您可以覆寫:

[slackhooker text="這是一則WordPress訊息。" sendnow="true"]

支援多個或自訂 Webhooks

[slackhooker text="這是一則訊息,發佈至多個 Webhooks" alsoto="https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcdefghij,https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcxxxxxxx"]

程式化範例
if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){
\VanillaBeans\SlackHooker\vbean_slackhooker('這是我的通知');
}

if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){
\VanillaBeans\SlackHooker\vbean_slackhooker('這是我的通知','mychannel','使用者名稱',':特定圖示:');
}

if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){
\VanillaBeans\SlackHooker\vbean_slacknotify(array('text'=>'這是我的通知', 'icon'=>':open_mouth:'));
}

除了訊息之外,每個參數都有預設值。您可以指定:
`* text – 為必要參數,這是您的訊息
* endpoints – 使用以逗點分隔的 endpooints 清單覆寫預設值,可指定頻道和警報,例如:endpoints=’https://endpoint.com#channel#here”
* channel – 預設為「general」或您的管理員預設頻道 - 已棄用
* username – 顯示於頻道中的寄件者身份
* icon – Slack 系統中任何可用的表情符號
* sendnow – true 或 false,預設為 false。True 表示當收到呼叫時立即執行訊息,而不是在頁面載入結束時。
聯繫方式

我們可以在以下位置找到:
* (http://www.velvary.com.au/contact-us)
* Twitter:@VelvaryVanilla
* 電子郵件:info@ 或 support@ velvary.com.au

原文外掛簡介

*Automated notifications from your WordPress * to your Slack / Mattermost application channels and webhooks.
There is no limit to the ways you may integrate this plugin.
It supports all other Vanilla Bean plugins and is available for under-the-bonnet
use as well as shortcode access.
Some shortcode examples:
[slackhooker text="Here is a message from my wordpress"]

or
[slackhooker text="Here is a message" channel="general" username="My WordPress"]

or
[slackhooker text="Here is a message" channel="https://myorg.slack.com/services/xxoxlsodsfsfsdfds#channelname" username="My WordPress"]

Messages are queued last in the PHP process to insure your other page processing is not interrupted, but you can override:
[slackhooker text="Here is a message from my wordpress." sendnow="true"]

Multiple or custom Webhooks supported
[slackhooker text="Here is a message to multiple webhooks" alsoto="https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcdefghij,https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcxxxxxxx"]

Programmatic Examples
if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){
\VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification');
}

if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){
\VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification','mychannel','Username',':specific_icon:');
}

if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){
\VanillaBeans\SlackHooker\vbean_slacknotify(array('text'=>'Here is my notification','icon'=>':open_mouth:'));
}

There are defaults for all except the message. You can specify:
`* text – required. This is your message
* endpoints – override defaults with a comma separated list of endpooints with optional channel and alert eg: endpoints=’https://endpoint.com#channel#here”
* channel – defaults to ‘general’ or your admin default specified channel – depracated
* username – the identity you would like displayed as the sender in the channel
* icon – any of the available emoji icons in the slack system
* sendnow – true or false. Defaults to false. True means that the message would be executed at the time it is called rather than at the end of page load.
Contact
We can be found at:
* (http://www.velvary.com.au/contact-us)
* Twitter: @VelvaryVanilla
* E: info@ or support@ velvary.com.au

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Vanilla Bean Slack Hooker」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


5.2.9 | 5.3.0 | 5.3.1 | 5.4.6 | 5.4.7 | 5.4.8 | 5.4.9 | 5.5.0 | trunk | 5.2.16 | 5.2.22 |

延伸相關外掛(你可能也想知道)

  • Scheduled Announcements Widget 》預定公告小工具讓您可以在網站的任何小工具區域或您的佈景主題檔案中,新增一個滾動的網站公告清單,與一般文章和頁面無關。這對於公佈事件、警示或通知非常...。
  • Notification Master – All-in-One WordPress Notifications 》## 摘要, Notification Master 是一個多功能的 WordPress 外掛,旨在通過提供全面的通知系統來提升使用者參與度。不論您希望通知用戶有關新文章、評論、使用...。
  • Advanced Notifications 》Advanced Notifications 允許您建立漂亮的自定義通知,顯示在您選擇的頁面或文章上。, Demo – Advanced Notifications – 在線預覽, 正在開發中:...。
  • MaxBoxy: Make WordPress Floating Content, Popup, Alert Bar 》MaxBoxy 是一款能夠協助您在網站中製作互動及轉換元素的工具。具體而言,在 WordPress 上使用 MaxBoxy 可以製作浮動內容、選單、資訊欄、彈出式或滑動式面板...。
  • World Weather 》World Weather 是一個WordPress外掛,可讓您收集免費或付費的氣象供應商數據,並在網站內容(例如頁面和文章)及元件中顯示這些數據。, 第三方服務, 目前已實...。
  • Super Monitoring 》Super Monitoring是一個外部的網站監控應用程式,用於監控網站的運作時間和其基本功能。, 此外掛會將Super Monitoring介面整合到WordPress管理面板中,因此您...。
  • Sales Notifications for WooCommerce – Recent Sales Popup 》Live Sale Notification For Woocommerce 是增加銷售量的最佳 WooCommerce 外掛程式。這個外掛允許您在彈出視窗上顯示最近的訂單並顯示顧客與產品資訊,您可...。
  • Callout Boxes 》此外掛包含一個呼叫框(callout box),裡面包含一個圖示以及文章內容。此外掛使用 Heroicons 和 php-heroicons PHP 套件。, 圖示, 呼叫框包含一個圖示,用以...。
  • WP-Announcements 》WP-Announcements 外掛適用於需要在網站或部落格顯示全站公告、精選文章、重要消息、社群通知、廣告、問卷或郵件訂閱表單、緊急警示或其他任何可以作為跑馬燈...。
  • AlertsDLX – Alerts, Callouts, and Notifications 》AlertsDLX 提供漂亮的樣式化警示和通知,適用於區塊編輯器。, , 快速連結:, , AlertsDLX 主頁, AlertsDLX 說明文件, AlertsDLX 支援, , 區塊風格的靈感來自...。
  • Courier Notices 》在您的網站上添加可取消和不可取消的通知。, , 自定義 Courier Notices 使用的顏色和圖標,無需編碼, 在需要時添加新的“類型”通知, 附帶一個常用的有用通知庫...。
  • Email Login Attempts 》這個外掛會在有人透過 WordPress 登入頁面嘗試登入時,自動發送一封電子郵件。, 待辦事項, , 新增管理員頁面, 指定收件人電子郵件地址, 辨別登入失敗或成功的...。
  • StatusCake 》StatusCake 是一個網站運行時間監控和警報服務。StatusCake 是您 WordPress 網站的理想夥伴,它具有豐富的運行時間監控、域名監控、 SSL 監控等功能。, 此外...。
  • WPNotify – Notifications for WooCommerce 》您有一個每天有數百位買家的出色電子商務業務嗎?需要透過 WhatsApp 與您的用戶建立更緊密的聯繫嗎?您來對地方了。, 安裝插件,開始通過 WhatsApp 發送有關...。
  • WPGAlerts 》WPGAlerts 允許您將自訂 Google Alert 文章添加到您的 WordPress 網站,最多可顯示 20 篇文章,包括作者、內容和標題連結到完整的文章。WPGAlerts 是將當前和...。

文章
Filter
Apply Filters
Mastodon