Title: ZAFS Alert For Slack
Author: Zohaib Murtaza
Published: <strong>2026 年 6 月 12 日</strong>
Last modified: 2026 年 6 月 12 日

---

搜索插件

![](https://ps.w.org/zafs-alert-for-slack/assets/banner-772x250.jpg?rev=3570370)

![](https://ps.w.org/zafs-alert-for-slack/assets/icon-256x256.png?rev=3570370)

# ZAFS Alert For Slack

 作者：[Zohaib Murtaza](https://profiles.wordpress.org/zohaibwb/)

[下载](https://downloads.wordpress.org/plugin/zafs-alert-for-slack.1.0.8.zip)

 * [详情](https://cn.wordpress.org/plugins/zafs-alert-for-slack/#description)
 * [评价](https://cn.wordpress.org/plugins/zafs-alert-for-slack/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/zafs-alert-for-slack/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/zafs-alert-for-slack/#developers)

 [支持](https://wordpress.org/support/plugin/zafs-alert-for-slack/)

## 描述

**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](https://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](https://api.slack.com/)
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](https://slack.com/terms-of-service),
[Privacy Policy](https://slack.com/trust/privacy-policy).

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

## 屏幕截图

[⌊Plugin home (apps and notification list)⌉⌊Plugin home (apps and notification list
)⌉[

Plugin home (apps and notification list)

[⌊Creating or editing a Slack app⌉⌊Creating or editing a Slack app⌉[

Creating or editing a Slack app

[⌊Add/edit notification modal with channel picker and message template⌉⌊Add/edit
notification modal with channel picker and message template⌉[

Add/edit notification modal with channel picker and message template

[⌊Importing and exporting apps and notifications as JSON⌉⌊Importing and exporting
apps and notifications as JSON⌉[

Importing and exporting apps and notifications as JSON

[⌊Setup guide modal⌉⌊Setup guide modal⌉[

Setup guide modal

## 安装

 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

## 常见问题

### 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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「ZAFS Alert For Slack」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Zohaib Murtaza ](https://profiles.wordpress.org/zohaibwb/)

[帮助将「ZAFS Alert For Slack」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/zafs-alert-for-slack)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/zafs-alert-for-slack/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/zafs-alert-for-slack/)，或通过[RSS](https://plugins.trac.wordpress.org/log/zafs-alert-for-slack/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/zafs-alert-for-slack/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **1.0.8**
 *  最后更新：**4 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0.7**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/zafs-alert-for-slack/)
 * 标签
 * [alerts](https://cn.wordpress.org/plugins/tags/alerts/)[ecommerce](https://cn.wordpress.org/plugins/tags/ecommerce/)
   [Notifications](https://cn.wordpress.org/plugins/tags/notifications/)[slack](https://cn.wordpress.org/plugins/tags/slack/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/zafs-alert-for-slack/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/zafs-alert-for-slack/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/zafs-alert-for-slack/reviews/)

## 贡献者

 *   [ Zohaib Murtaza ](https://profiles.wordpress.org/zohaibwb/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/zafs-alert-for-slack/)