這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Slack

描述

This plugin allows you to send notifications to Slack channels when certain events in WordPress occur.

By default, there are two events that can be sent to Slack:

  1. When a post needs review (status transitioned to ‘pending’)
  2. When a post is published
  3. When there’s a new comment

It’s possible to add more events using slack_get_events filter. For more information check the doc.

Development of this plugin is done on GitHub. Pull requests are always welcome.

There are some extension plugins that notify events triggered by other plugins. Belows are some of them:

螢幕截圖

  • Integrations list. Yes, you can add more than one integration.
  • Edit integration screen.
  • Your channel get notified when some events occur.

常見問題

Installation Instructions
  1. Upload Slack plugin to your blog’s wp-content/plugins/ directory and activate.
  2. Add new Incoming WebHooks service in your Slack, the URL is https://<SUBDOMAIN>.com/services/new/incoming-webhook (replace <SUBDOMAIN> with your Slack’s subdomain). Once created, note the URL of the service (you’ll set it into integration entry in your WordPress).
  3. Go to Slack menu in your WordPress to add the integration (make sure you’re logged in as an Administrator).

評價

2017年10月13日
Set up was fairly smooth. There is a typo in step #2 of the Installation Instructions. The URL should be written as this: https://<SUBDOMAIN>.slack.com/services/new/incoming-webhook Thank you for creating and supporting this plugin!
閱讀全部7個評價

貢獻者及開發者

“Slack” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Slack 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.6.0

  • Fix spinner is not showing when sending test notification.
  • Convert HTML entities in Slack notifications.
  • Bump tested up to 4.7.3.
  • For developers, unit tests and end-to-end tests were added.

0.5.1

  • Removed bin directory for published plugin in WP.org. Props otto42

0.5.0

  • Added bot icon support

0.4.1

  • Fixed wrong text domain. Props jphorn

0.4.0

  • Added priority key in event type array
  • Make sure wp_insert_comment is invoked as late as possible by passing priority 999
  • Added comment text and linkable text to edit comment in notification message
  • Added post_pending_review event type
  • Added excerpt when a post needs review (status transitioned to ‘pending’)
  • Added excerpt when a post is published
  • Fixed typo

0.3.0

  • Add activate / deactivate link in row actions
  • More columns in integration list table

0.2.0

  • For default “When a post is published” and “When there is a new comment” events, limit the post type to “post”
  • Don’t send notification if message evaluates to false
  • Plugin’s banner
  • Put Slack URL in README

0.1.0

Initial release