{"id":266227,"date":"2025-12-27T12:57:57","date_gmt":"2025-12-27T12:57:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/slack-notifications\/"},"modified":"2025-12-27T12:57:43","modified_gmt":"2025-12-27T12:57:43","slug":"yetilabs-post-alerts-for-slack","status":"publish","type":"plugin","link":"https:\/\/da.wordpress.org\/plugins\/yetilabs-post-alerts-for-slack\/","author":23413424,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.9.0","stable_tag":"3.9.0","tested":"6.9.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"YetiLabs Post Alerts for Slack","header_author":"Andrei AVRAM \/ Yeti Labs","header_description":"Sends Slack messages when posts are published in specific categories, using configurable rules (category \u2192 channel \u2192 message template).","assets_banners_color":"f6f6f7","last_updated":"2025-12-27 12:57:43","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/yetilabs.ro\/","header_plugin_uri":"https:\/\/yetilabs.ro\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":133,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":{"3.9.0":{"tag":"3.9.0","author":"andreiavram","date":"2025-12-27 12:57:43"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":3428234,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3428234,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3428234,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["3.9.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Settings screen with category-to-channel rules and message template."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[610,4906,166,7143,3565],"plugin_category":[57],"plugin_contributors":[252894],"plugin_business_model":[],"class_list":["post-266227","plugin","type-plugin","status-publish","hentry","plugin_tags-categories","plugin_tags-notifications","plugin_tags-posts","plugin_tags-publishing","plugin_tags-slack","plugin_category-taxonomy","plugin_contributors-andreiavram","plugin_committers-andreiavram"],"banners":{"banner":"https:\/\/ps.w.org\/yetilabs-post-alerts-for-slack\/assets\/banner-772x250.png?rev=3428234","banner_2x":"https:\/\/ps.w.org\/yetilabs-post-alerts-for-slack\/assets\/banner-1544x500.png?rev=3428234","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/yetilabs-post-alerts-for-slack\/assets\/icon.svg?rev=3428234","icon":"https:\/\/ps.w.org\/yetilabs-post-alerts-for-slack\/assets\/icon.svg?rev=3428234","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>YetiLabs Post Alerts for Slack lets you send a Slack message automatically when a post is published in selected categories. Define simple rules:<\/p>\n\n<ul>\n<li>Category (one or more) \u2192 Channel \u2192 Message template<\/li>\n<li>Supports Slack Web API via Bot Token (<code>chat.postMessage<\/code>).<\/li>\n<li>Legacy Incoming Webhook is supported as a fallback if you haven\u2019t migrated to a bot token yet.<\/li>\n<\/ul>\n\n<p>Features:\n- Per-site settings in multisite (no network settings)\n- Multiple rules; a post can trigger multiple messages\n- Customizable message template with placeholders: <code>{title}<\/code>, <code>{url}<\/code>, <code>{author}<\/code>, <code>{categories}<\/code>, <code>{site_url}<\/code>, <code>{site_title}<\/code><\/p>\n\n<p>Trademark notice: \u201cSlack\u201d is a trademark of Slack Technologies, LLC. This plugin is not affiliated with, endorsed, or sponsored by Slack Technologies, LLC.<\/p>\n\n<h3>How It Works<\/h3>\n\n<p>The plugin works by matching the categories of a published post against your defined rules.<\/p>\n\n<ol>\n<li><strong>Defining Rules<\/strong>: You can create multiple rules. Each rule consists of:\n\n<ul>\n<li><strong>Trigger Categories<\/strong>: One or more categories that will trigger the alert.<\/li>\n<li><strong>Target Channel<\/strong>: The Slack channel where the message will be sent (e.g., <code>#general<\/code> or a channel ID).<\/li>\n<li><strong>Message Template<\/strong>: The content of the message, supporting placeholders like <code>{title}<\/code> and <code>{url}<\/code>.<\/li>\n<\/ul><\/li>\n<li><strong>Post Publication<\/strong>: When a post is published (or transitions to the 'publish' status), the plugin checks its categories.<\/li>\n<li><strong>Matching<\/strong>: If a post's category matches any category in a rule, that rule is triggered.<\/li>\n<li><strong>Multiple Matches<\/strong>: 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 <code>#news<\/code> and another for \"Tech\" going to <code>#tech<\/code>, a post in both categories will trigger alerts in both channels.<\/li>\n<\/ol>\n\n<h3>External Services<\/h3>\n\n<p>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.<\/p>\n\n<p><strong>What data is sent:<\/strong> 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.<\/p>\n\n<p><strong>Why data is sent:<\/strong> 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.<\/p>\n\n<p><strong>When data is sent:<\/strong> Data is transmitted to Slack only when a post is published that matches your configured category rules.<\/p>\n\n<p><strong>Service provider:<\/strong> Slack Technologies, LLC\n- Slack API endpoint: https:\/\/slack.com\/api\/chat.postMessage\n- Terms of Service: https:\/\/slack.com\/terms-of-service\n- Privacy Policy: https:\/\/slack.com\/privacy-policy<\/p>\n\n<h3>Privacy<\/h3>\n\n<p>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.<\/p>\n\n<h3>Uninstall<\/h3>\n\n<p>On uninstall, the plugin deletes the following option from each site: <code>ylps_settings<\/code>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> or install it from the WordPress Plugins screen.<\/li>\n<li>Activate the plugin through the \u201cPlugins\u201d screen in WordPress.<\/li>\n<li>Go to Settings \u2192 YetiLabs Post Alerts for Slack and configure:\n\n<ul>\n<li>Slack Bot Token (recommended), or keep a legacy Incoming Webhook URL as a temporary fallback.<\/li>\n<li>Add one or more rules mapping Categories \u2192 Channel \u2192 Message Template.\n36:\n37:== Slack App Setup ==\n38:\n39:To use this plugin, you need to create a Slack App in your workspace to get a Bot Token:\n40:\n41:1. Go to <a href=\"https:\/\/api.slack.com\/apps\">Slack API: Your Apps<\/a> and click <strong>Create New App<\/strong>.\n42:2. Select <strong>From scratch<\/strong>, name your app (e.g., \"Post Alerts\"), and select your workspace.\n43:3. In the sidebar, go to <strong>OAuth &amp; Permissions<\/strong>.\n44:4. Scroll down to <strong>Scopes<\/strong> -&gt; <strong>Bot Token Scopes<\/strong> and click <strong>Add an OAuth Scope<\/strong>. Add <code>chat:write<\/code>.\n45:5. (Optional) If you want the bot to post to private channels without being invited, add <code>chat:write.public<\/code>.\n46:6. Scroll up and click <strong>Install to Workspace<\/strong>, then click <strong>Allow<\/strong>.\n47:7. Copy the <strong>Bot User OAuth Token<\/strong> (starts with <code>xoxb-<\/code>).\n48:8. Paste this token into the plugin settings in WordPress.\n49:9. <strong>Important:<\/strong> In Slack, invite the bot to the channel(s) where you want it to post by typing <code>\/invite @YourAppName<\/code>.\n50:\n51:== Frequently Asked Questions ==<\/li>\n<\/ul><\/li>\n<\/ol>\n\n<h4>Do I need a Slack Bot Token?<\/h4>\n\n<p>Recommended. The plugin uses Slack Web API <code>chat.postMessage<\/code> 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.<\/p>\n\n<h4>Does it work in multisite?<\/h4>\n\n<p>Yes. Settings are per-site. There is no network-level settings page.<\/p>\n\n<h4>Why do I see a database encoding error when saving settings?<\/h4>\n\n<p>Your database may not support 4\u2011byte UTF\u20118 (utf8mb4). Emojis and some characters require utf8mb4. Convert your database\/tables and configure WordPress to use <code>utf8mb4<\/code>. The settings screen will show an error message with the last DB error to help identify the issue.<\/p>","raw_excerpt":"Send Slack messages when posts are published in specific categories, using configurable rules (category \u2192 channel \u2192 message template).","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/266227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=266227"}],"author":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/andreiavram"}],"wp:attachment":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=266227"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=266227"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=266227"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=266227"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=266227"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=266227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}