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.

  1. 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}.
  2. Post Publication: When a post is published (or transitions to the ‘publish’ status), the plugin checks its categories.
  3. Matching: If a post’s category matches any category in a rule, that rule is triggered.
  4. 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.

इंस्टॉलेशन

  1. Upload the plugin folder to /wp-content/plugins/ or install it from the WordPress Plugins screen.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Go to Settings YetiLabs Post Alerts for Slack and configure:
    • Slack Bot Token (recommended), or keep a legacy Incoming Webhook URL as a temporary fallback.
    • Add one or more rules mapping Categories Channel Message Template.
      36:
      37:== Slack App Setup ==
      38:
      39:To use this plugin, you need to create a Slack App in your workspace to get a Bot Token:
      40:
      41:1. Go to Slack API: Your Apps and click Create New App.
      42:2. Select From scratch, name your app (e.g., “Post Alerts”), and select your workspace.
      43:3. In the sidebar, go to OAuth & Permissions.
      44:4. Scroll down to Scopes -> Bot Token Scopes and click Add an OAuth Scope. Add chat:write.
      45:5. (Optional) If you want the bot to post to private channels without being invited, add chat:write.public.
      46:6. Scroll up and click Install to Workspace, then click Allow.
      47:7. Copy the Bot User OAuth Token (starts with xoxb-).
      48:8. Paste this token into the plugin settings in WordPress.
      49:9. Important: In Slack, invite the bot to the channel(s) where you want it to post by typing /invite @YourAppName.
      50:
      51:== Frequently Asked Questions ==

Do I need a Slack Bot Token?

Recommended. The plugin uses Slack Web API chat.postMessage when a Bot Token is present. If you still have a legacy Incoming Webhook URL, messages may be sent via the webhook as a fallback until you add a token.

Does it work in multisite?

Yes. Settings are per-site. There is no network-level settings page.

Why do I see a database encoding error when saving settings?

Your database may not support 4‑byte UTF‑8 (utf8mb4). Emojis and some characters require utf8mb4. Convert your database/tables and configure WordPress to use utf8mb4. The settings screen will show an error message with the last DB error to help identify the issue.

समीक्षाएं

इस प्लगइन के लिए कोई समीक्षा नहीं है।

सहायक &डेवलपर्स

यह खुला स्रोत सॉफ्टवेयर है। अनुगामी लोगो ने इस प्लगइन के लिए योगदान दिया है।

योगदानकर्ता