[WordPress] 外掛分享: SlashPress

首頁外掛目錄 › SlashPress
WordPress 外掛 SlashPress 的封面圖片
全新外掛
安裝啟用
尚無評分
119 天前
最後更新
問題解決
WordPress 4.7.1+ PHP 7.0+ v1.2.0 上架:2020-04-27

內容簡介

在 Mattermost 上建立自訂斜線命令或在 Slack 上建立私人應用程式帶有斜線命令功能非常容易。此外掛可將該方便的聊天介面轉換為可訂閱的事件,使用標准 WordPress filter 和 action hooks。這可使需要按需執行的任務自動化,並為其提供互動式幫助。

提供的 hooks 如下:

slashpress_command_${command}
slashpress_command
slashpress_help_${command}
slashpress_help

訂閱的事件接收代表已發送斜線命令的輔助物件,可使用 Markdown 或豐富的回應物件回應聊天服務。插件可以聽取特定的斜線命令或整個網站的命令,並根據命令內容作出回應。長時間運行的任務(>3 秒)可以提供即時確認回應,然後稍後提供結果回應;這可藉由確保網站的cron 呼叫適當,然後將輔助物件傳遞給 wp_schedule_single_event() 以在背景中執行任務並在完成時發送狀態訊息,就可輕鬆實現。

此外掛本身不執行任何操作。它旨在向開發人員和維護者抽象出乏味的連接和身分驗證,使您能保持 DRY 原則。它支援令牌和 HMAC 簽署的身分驗證。此端點所能處理的此類集成沒有數量限制。僅接受並發送 POST 方法請求以保持存取記錄清晰。可以設定互動式幫助關鍵字。

此外掛未包含任何日誌、指標、分析、麻煩事或違反您的隱私或 GDPR 義務的內容。它不是 freemium,沒有「專業版」。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.0) 或搜尋安裝

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

原文外掛簡介

It’s very easy to create a custom slash command on Mattermost, or a private app on Slack that has the slash command feature. This plugin turns that convenient chat interface into a subscribable event using standard WordPress filter & action hooks. This enables automation of tasks that need to be run on-demand, and provision of interactive help for them.
The hooks provided are as follows:

slashpress_command_${command}
slashpress_command
slashpress_help_${command}
slashpress_help

The subscribed events receive a helper object representing the sent slash command, with methods to respond using Markdown or a rich response object the chat service can render. Plugins may listen for a specific slash command or a site-wide one, and respond based on the command content. Long-running tasks (> 3 seconds) can provide an immediate acknowledgement response, then later a result response; this is easily achieved by ensuring a proper cron invocation for the site, then passing the helper object to wp_schedule_single_event() to run the task in the background and POST a status message back upon completion.
By itself, this plugin doesn’t perform any tasks. It is aimed at developers and maintainers to abstract away the boring plumbing and authentication, allowing you to keep your code DRY. It supports authentication by both tokens and HMAC signatures. There is no limit on the number of such integrations this endpoint can handle. Only POST method requests are accepted and sent so access logs are kept clean. The interactive help keyword is configurable.
There is no logging, metrics, analytics, nags, or anything that would violate your privacy or GDPR obligations contained in this plugin. It is not freemium; there is no ‘Pro’ version.

延伸相關外掛

文章
Filter
Mastodon