
內容簡介
**總結:** YetiLabs Post Alerts for Slack能夠在選定的分類中發佈文章時自動發送Slack消息。用戶可以定義簡單的規則,並支持Slack Web API。該外掛提供多個功能,包括在多站點中進行單獨設置,發送多條消息以及自定義消息模板。請參閱以下問題和答案。
1. 外掛的主要功能是什麼?
- 可以在選定的分類中自動發送Slack消息。
2. 外掛支持哪些內容和設置?
- 外掛支持Slack Web API和Bot Token。
- 提供遺留的Incoming Webhook作為備用選項。
3. 外掛的規則是如何定義的?
- 每個規則包含觸發分類、目標頻道和消息模板。
4. 當有新的文章發佈時,外掛如何工作?
- 外掛會檢查發佈文章的分類。
- 如果文章的分類與任何規則中的分類匹配,則該規則將被觸發。
- 如果一篇文章匹配多個規則,則將為每個匹配的規則發送獨立消息。
5. 外部服務指的是什麼?
- 外掛會連接到Slack API,以便發送文章發佈時的通知消息。
6. 外插將什麼數據發送到Slack?
- 當發佈符合設置規則的文章時,外掛會將文章標題、URL、作者名稱、分類和自定義消息模板發送到Slack。
7. 外插如何保護用戶的隱私?
- 外插僅向Slack發送用戶配置的內容,不會在插件中存儲任何個人數據。用户可以參考Slack的隱私政策了解更多信息。
8. 卸載此外掛後會發生什麼?
- 卸載後,外掛將從每個站點中刪除ylps_settings選項。
外掛標籤
開發者團隊
② 後台搜尋「YetiLabs Post Alerts for Slack」→ 直接安裝(推薦)
原文外掛簡介
YetiLabs Post Alerts for Slack lets you send a Slack message automatically when a post is published in selected categories. Define simple rules:
Category (one or more) → Channel → Message template
Supports Slack Web API via Bot Token (chat.postMessage).
Legacy Incoming Webhook is supported as a fallback if you haven’t migrated to a bot token yet.
Features:
– Per-site settings in multisite (no network settings)
– Multiple rules; a post can trigger multiple messages
– Customizable message template with placeholders: {title}, {url}, {author}, {categories}, {site_url}, {site_title}
Trademark notice: “Slack” is a trademark of Slack Technologies, LLC. This plugin is not affiliated with, endorsed, or sponsored by Slack Technologies, LLC.
How It Works
The plugin works by matching the categories of a published post against your defined rules.
Defining Rules: You can create multiple rules. Each rule consists of:
Trigger Categories: One or more categories that will trigger the alert.
Target Channel: The Slack channel where the message will be sent (e.g., #general or a channel ID).
Message Template: The content of the message, supporting placeholders like {title} and {url}.
Post Publication: When a post is published (or transitions to the ‘publish’ status), the plugin checks its categories.
Matching: If a post’s category matches any category in a rule, that rule is triggered.
Multiple Matches: If a post matches multiple rules, a separate message will be sent for each matching rule. For example, if you have a rule for “News” going to #news and another for “Tech” going to #tech, a post in both categories will trigger alerts in both channels.
External Services
This plugin connects to the Slack API (an external service) to send notification messages when posts are published. Slack is a third-party service provided by Slack Technologies, LLC.
What data is sent: When a post matching your configured rules is published, the plugin sends the following data to Slack: post title, URL, author name, categories, and your custom message template.
Why data is sent: Data is sent to Slack to provide the core functionality of the plugin: notifying your Slack workspace when new content is published on your WordPress site.
When data is sent: Data is transmitted to Slack only when a post is published that matches your configured category rules.
Service provider: Slack Technologies, LLC
– Slack API endpoint: https://slack.com/api/chat.postMessage
– Terms of Service: https://slack.com/terms-of-service
– Privacy Policy: https://slack.com/privacy-policy
Privacy
This plugin sends content you configure (title, URL, author, categories, and your template) to Slack. No personal data is stored by the plugin beyond the settings you save in your WordPress database. See Slack’s privacy policy for how Slack handles data.
Uninstall
On uninstall, the plugin deletes the following option from each site: ylps_settings.
