Title: WP Down Slack Alert
Author: Jb Audras
Published: <strong>2019 年 12 月 12 日</strong>
Last modified: 2025 年 11 月 27 日

---

搜索插件

![](https://ps.w.org/wp-down-slack-alert/assets/banner-772x250.png?rev=2213562)

![](https://ps.w.org/wp-down-slack-alert/assets/icon-256x256.png?rev=2213562)

# WP Down Slack Alert

 作者：[Jb Audras](https://profiles.wordpress.org/audrasjb/)

[下载](https://downloads.wordpress.org/plugin/wp-down-slack-alert.0.4.1.zip)

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

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

## 描述

**This plugin is meant to send automatic notifications on the channel of your choice
in your Slack Team.**

Wether you manage hundred of websites or only a single one, it’s always good to 
know when they are down, so you can step in as quick as possible.

**WP Down Slack Alert** provides a dedicated settings screen where you are able 
to set up your Slack channel configuration and to create a customized bot (name,
avatar…) for your notifications. There is a very helpful configuration wizard for
your Slack API token. It will only takes few minutes to complete the configuration
process.

You can also programmatically define the plugin’s settings with dedicated PHP constants(
see FAQ section below).

This plugin is based on WordPress Core Recovery Mode. The Slack alert is triggered
when your websites goes into Recovery Mode and send you a Slack Notification with
details about the issue.

## 屏幕截图

[⌊Settings screen.⌉⌊Settings screen.⌉[

Settings screen.

[⌊Slack API Token tutorial in the settings screen.⌉⌊Slack API Token tutorial in 
the settings screen.⌉[

Slack API Token tutorial in the settings screen.

[⌊Slack notification example.⌉⌊Slack notification example.⌉[

Slack notification example.

## 安装

 1. Install the plugin and activate.
 2. Go to Tools > WP Down Slack Alert settings.
 3. See our FAQ below or follow the instruction in the settings page to configure your
    Slack token.

## 常见问题

### How to set up the connexion to my Slack Team?

Go to Tools > WP Down Slack Alert and follow the tutorial to get your Slack API 
token and customize your Slack notification bot:

To set up your Slack app, you’ll need to get a Slack Bot token:

 1. Go to this page: https://api.slack.com/apps?new_app=1 and provide a name for your
    App, choose a Slack workspace and click on “Create App” button.
 2. In the “Features and functionality” section, click on the “Bots” panel.
 3. That will lead you to the “Bot user” screen. Click on “Add a Bot User” button.
 4. Leave the default names (you will be able to override that in the plugin’s settings),
    and click “Add bot user” button.
 5. Click on the “Install App” menu item in the navigation sidebar, then click on the“
    Install App to Workspace” button.
 6. Allow this Slack App to access your Slack team: click on the “Allow” button.
 7. Copy/paste the **Bot User OAuth Access Token** in the plugin’s settings field.

### How to programmatically define the plugin settings using PHP constants?

To programmatically define your settings, you can optionally use the following PHP
constants, in a customized mu-plugin:

    ```
    // Disable the admin settings screen (false to disable)
    define( 'WPDSA_SETTINGS', false );

    // Define the Slack API Token (string)
    define( 'WPDSA_NOTIFICATION_TOKEN', 'qcsqkjcssjcksqh' );

    // Define the notification channel (string - slugified)
    define( 'WPDSA_NOTIFICATION_CHANNEL', 'my_slack_channel' );

    // Disable the notification email (true to disable)
    define( 'WPDSA_NOTIFICATION_DISABLE_EMAIL', true );

    // Define the Slack notification recurrence (string - accepted values: '0,5', '1', '2', '6', '24', 'anytime')
    define( 'WPDSA_NOTIFICATION_RECURRENCE', '2' );

    // Define the notification bot name (string - slugified)
    define( 'WPDSA_NOTIFICATION_BOTNAME', 'My_bot_name' );

    // Define the notification message title text (string)
    define( 'WPDSA_NOTIFICATION_MESSAGE_TITLE', 'My message title' );

    // Define the notification message footer text (string)
    define( 'WPDSA_NOTIFICATION_MESSAGE_FOOTER', 'My message footer text' );

    // Define the notification message image (string - absolute link to an online image)
    define( 'WPDSA_NOTIFICATION_MESSAGE_IMAGE', 'http://assets.whodunit.fr/brand/logo_whodunit_petit.png' );

    // Disable the "Green" notification message (true to disable)
    define( 'WPDSA_NOTIFICATION_DISABLE_GREEN', true );
    ```

[Follow this link to download a complete example of mu-plugin file](https://www.whodunit.fr/wp-content/uploads/2019/12/wp-down-slack-alert-constants.zip)

You can download it, change the constants values if needed and upload it to `/wp-
content/mu-plugins` folder. You can also define the PHP constants in your `wp-config.
php` file.

## 评价

![](https://secure.gravatar.com/avatar/1dad722503ce53b1e2c363b14d3b532abe681111eaa815e51431659ae3a81d82?
s=60&d=retro&r=g)

### 󠀁[Parfait !](https://wordpress.org/support/topic/parfait-212/)󠁿

 [Timothée Brosille](https://profiles.wordpress.org/spaceshipone/) 2020 年 1 月 
30 日

Extension très utile quand on gère plusieurs sites pour être alerté des problèmes.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/wp-down-slack-alert/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Jb Audras ](https://profiles.wordpress.org/audrasjb/)
 *   [ Whodunit ](https://profiles.wordpress.org/whodunitagency/)
 *   [ Kantari Samy ](https://profiles.wordpress.org/leprincenoir/)

「WP Down Slack Alert」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-down-slack-alert/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.4.1

 * Technical fixes.

#### 0.4

 * New feature: send a Green notification when a broken website is back in business.
 * Enhancement: Add disable green notification setting.
 * Enhancement: Add disable green notification constant.

#### 0.3.2

 * Fix: false positive with Slack API connexion check.

#### 0.3.1

 * Fix: possible PHP fatal error on notification frequency.
 * Fix: Remove a test echo function in plugin’s main file.

#### 0.3

 * Fix: styles and scripts enqueues.
 * Fix: possible PHP fatal error for old PHP versions.
 * Enhancement: add a set of PHP constants to programmatically define the plugin
   settings.

#### 0.2

 * Better internationalization and tutorial integration.

#### 0.1

 * Plugin initial commit. Works fine 🙂

## 额外信息

 *  版本 **0.4.1**
 *  最后更新：**7 月前**
 *  活跃安装数量 **60+**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-down-slack-alert/) 、 [French (France)](https://fr.wordpress.org/plugins/wp-down-slack-alert/)
   和 [Swedish](https://sv.wordpress.org/plugins/wp-down-slack-alert/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-down-slack-alert)
 * 标签
 * [alert](https://cn.wordpress.org/plugins/tags/alert/)[downtime](https://cn.wordpress.org/plugins/tags/downtime/)
   [notification](https://cn.wordpress.org/plugins/tags/notification/)[recovery](https://cn.wordpress.org/plugins/tags/recovery/)
   [slack](https://cn.wordpress.org/plugins/tags/slack/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-down-slack-alert/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/wp-down-slack-alert/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-down-slack-alert/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-down-slack-alert/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-down-slack-alert/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-down-slack-alert/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-down-slack-alert/reviews/#new-post)

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

## 贡献者

 *   [ Jb Audras ](https://profiles.wordpress.org/audrasjb/)
 *   [ Whodunit ](https://profiles.wordpress.org/whodunitagency/)
 *   [ Kantari Samy ](https://profiles.wordpress.org/leprincenoir/)

## 支持

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

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