ZAFS Alert For Slack

Description

ZAFS Alert For Slack sends messages to your Slack workspace when important events happen on your WordPress site. This plugin is developed by Zohaib Murtaza and is not affiliated with, endorsed by, or sponsored by Slack.

Create multiple notification rules — each with its own Slack app, channel, event, and custom message template. Use dynamic variables like {post_title}, {user_login}, or {order_total} in your messages.

WordPress events include published posts, new user registrations, and new comments.

WooCommerce support — when WooCommerce is active, you can also notify Slack about new orders, order status changes, low stock, and new products.

Features

  • Save multiple Slack apps (name + bot token) and reuse them across notifications
  • Multiple notification rules (different apps, channels, and events per rule)
  • Connect with a Slack Bot User OAuth Token (xoxb-...)
  • Load and select channels from your workspace
  • Custom message templates with merge tags
  • Send test messages before going live
  • Encrypted token storage at rest
  • Export and import apps and notifications as JSON (backup, migration)
  • WordPress events: post published, user registered, comment posted
  • WooCommerce events (when WooCommerce is active): product created, new order, order status changed, low stock

Slack setup

  1. Create a Slack app at api.slack.com/apps
  2. Add Bot Token Scopes: channels:read, groups:read (required for private channels), chat:write
  3. Install the app to your workspace and copy the Bot User OAuth Token
  4. Invite the bot to the channel: /invite @YourBot
  5. Paste the token in the plugin and click Load channels

Privacy

Slack bot tokens and notification settings are stored in your WordPress database (tokens are encrypted at rest). No data is sent to the plugin author.

External services

This plugin connects to Slack (Slack Technologies, LLC) through the Slack Web API at https://slack.com/api/. Slack is required to verify bot tokens, list channels, and deliver alert messages you configure.

What is sent and when

  • When you save a Slack app — the plugin sends your Bot User OAuth Token to Slack (auth.test) to verify the token and read the workspace name.
  • When you click Load channels — the plugin sends the token to Slack to list channels your bot can access (conversations.list and related methods).
  • When you send a test message or a notification fires — the plugin sends the token, target channel ID, and the message text (built from your template and event data such as post title, user login, order total, or product name) to Slack (chat.postMessage).

You choose which events trigger notifications. If WooCommerce is active, order-related templates may include billing email, order totals, and product details you include in the message template.

Service provider

Slack Technologies, LLC — Terms of Service, Privacy Policy.

This plugin is not affiliated with Slack. Use of Slack is subject to your workspace agreement with Slack.

Screenshots

Installation

  1. Upload the plugin folder to /wp-content/plugins/ or install via Plugins Add New
  2. Activate ZAFS Alert For Slack through the Plugins menu
  3. Go to ZAFS Alerts in the admin menu
  4. Under Slack apps, click Add Slack app and save your bot token
  5. Under Notifications, click Add notification, select an app, load channels, and configure the event

FAQ

Is this an official Slack plugin?

No. ZAFS Alert For Slack is an independent plugin by Zohaib Murtaza. It uses Slack’s API but is not affiliated with Slack.

Do I need a paid Slack plan?

A free Slack workspace works. You need permission to create a Slack app and install it.

Why can’t I see my channel?

Private channels only appear if the bot has been invited. Run /invite @YourBot in the channel, then click Load channels. Your app must include the groups:read scope — if you added it after installing, reinstall the app to the workspace and re-save the token in the plugin.

Can I use one token for all notifications?

Yes. You can reuse the same token on multiple rules and choose different channels or events.

Does this work without WooCommerce?

Yes. WordPress events are always available. WooCommerce events appear when WooCommerce is active.

Does it support WooCommerce?

Yes. When WooCommerce is active, additional events are available for new orders, order status changes, low stock, and new products — each with its own channel and message template.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“ZAFS Alert For Slack” is open source software. The following people have contributed to this plugin.

Contributors

Translate “ZAFS Alert For Slack” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.8

  • Removed WordPress.org directory asset files from the plugin package (upload via SVN after approval)
  • Documented Slack external service usage in readme (data sent, terms, privacy policy)

1.0.7

  • Rebranded user-facing name to ZAFS Alert For Slack (ZAFS Alerts menu)
  • Renamed internal includes from wpafs_* to zafs_* filenames
  • Migration from wpafs_* options and WooCommerce dedupe meta; wpafs: token decrypt fallback
  • Import accepts exports from wp-alert-for-slack slug

1.0.6

  • Internal identifiers aligned with plugin name (ZAFS prefix, zafs_* options and REST namespace)
  • Automatic migration from legacy wsn_* option keys

1.0.5

  • Renamed to WP Alert For Slack (slug: wp-alert-for-slack)

1.0.4

  • Renamed plugin per WordPress.org trademark guidelines

1.0.0

  • Initial release