plugin-icon

Vanilla Bean Slack Hooker

投稿者: vsmash·
Notify one あるいは more Slack, Mattermost あるいは other endpoints with configured webhooks for WordPress events. Notifications for plugin installs and updates, …
評価
5/5
バージョン
5.5.10
有効インストール数
10
最終更新日時
Oct 24, 2025

Automated notifications from your WordPress site to your Slack / Mattermost application channels and webhooks.

There is no limit to the ways you may integrate this plugin.

It supports all other Vanilla Bean plugins and is available for under-the-hood use as well as shortcode access.

Key Features

  • Real-time WordPress notifications – Post status changes, comments, user registrations
  • WooCommerce integration – Sales notifications with order details
  • Plugin management alerts – Install, update, and deletion notifications
  • Multiple webhook support – Send to Slack, Mattermost, Discord, or custom endpoints
  • Formatted data messages – Rich attachments with structured name-value pairs (NEW in 5.5.2)
  • Smart queueing – Non-blocking message delivery with optional immediate sending
  • Email fallback – Send notifications via email when webhooks aren’t available
  • Shortcode support – Easy integration in posts and pages
  • Programmatic API – Full developer access with PHP functions

Shortcode Examples

[slackhooker text="Here is a message from my WordPress site"]

あるいは

[slackhooker text="Here is a message" channel="general" username="My WordPress"]

あるいは

[slackhooker text="Here is a message" channel="https://myorg.slack.com/services/xxoxlsodsfsfsdfds#channelname" username="My WordPress"]

Messages are queued last in the PHP process to ensure your other page processing is not interrupted, but you can override:

[slackhooker text="Here is a message from my WordPress." sendnow="true"]

Multiple or custom webhooks supported:

[slackhooker text="Here is a message to multiple webhooks" alsoto="https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcdefghij,https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcxxxxxxx"]

Programmatic Examples

Simple text messages:

if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){ \VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification'); } if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){ \VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification','mychannel','Username',':specific_icon:'); } if(function_exists('\VanillaBeans\SlackHooker\vbean_slacknotify')){ \VanillaBeans\SlackHooker\vbean_slacknotify(array('text'=>'Here is my notification','icon'=>':open_mouth:')); }

Formatted data messages (NEW in 5.5.2):

if(function_exists('\VanillaBeans\SlackHooker\vbean_send_data')){ $data = array( 'User ID' => '12345', 'Email' => 'user@example.com', 'Status' => 'Active', 'Last Login' => '2025-10-03 14:30:00' ); \VanillaBeans\SlackHooker\vbean_send_data('User Registration', $data); }

Custom formatted messages with options:

if(function_exists('\VanillaBeans\SlackHooker\vbean_send_data')){ $data = array( 'Order ID' => '#WC-12345', 'Amount' => '$299.99', 'Customer' => 'John Doe', 'Payment Method' => 'Credit Card' ); $options = array( 'color' => '#00ff00', 'pretext' => 'New WooCommerce Sale!', 'text' => 'Payment processed successfully' ); \VanillaBeans\SlackHooker\vbean_send_data('E-commerce Sale', $data, $options); }

Building custom attachment messages:

if(function_exists('\VanillaBeans\SlackHooker\vbean_build_data_message')){ $message = \VanillaBeans\SlackHooker\vbean_build_data_message('System Alert', array( 'Server' => 'web-01.example.com', 'CPU Usage' => '85%', 'Memory' => '3.2GB / 4GB', 'Disk Space' => '75% full' ), array('color' => '#ff9900')); // Send using existing notification system Vanilla_Bean_Slack_Hooker::notification_send($message); }

Parameters

There are defaults for all except the message. You can specify:

  • text – required. This is your message
  • endpoints – override defaults with a comma separated list of endpoints with optional channel and alert eg: endpoints=’https://endpoint.com#channel#here’
  • channel – defaults to ‘general’ or your admin default specified channel – deprecated
  • username – the identity you would like displayed as the sender in the channel
  • icon – any of the available emoji icons in the slack system
  • sendnow – true or false. Defaults to false. True means that the message would be executed at the time it is called rather than at the end of page load.

New Data Message Parameters (5.5.2):

  • title – required for data messages. Main title of the message
  • data – associative array of name => value pairs to display
  • options – array of formatting options (color, pretext, text, author_name, etc.)

Use Cases

  • E-commerce monitoring – WooCommerce order notifications
  • User activity tracking – Registration and login alerts
  • System monitoring – Server status and health checks
  • Content management – Post publication and comment notifications
  • Security alerts – Failed login attempts and suspicious activity
  • Plugin management – Installation, update, and deletion notifications

連絡先

We can be found at:

  • Website: Velvary Contact
  • Twitter: @VelvaryVanilla
  • Email: info@velvary.com.au or support@velvary.com.au
無料Business プランを利用中
インストールすることで、WordPress.com の利用規約サードパーティプラグイン利用規約に同意したことになります。
最大テスト回数
WordPress 6.8.3
このプラグインをダウンロードして、 サイトに使用できます。