Title: Vanilla Bean Slack Hooker
Author: vsmash
Published: <strong>21. decembra 2015</strong>
Last modified: 15. julija 2026

---

Tykače pytać

![](https://ps.w.org/vanilla-bean-slack-hooker/assets/icon.svg?rev=1327819)

# Vanilla Bean Slack Hooker

 Wot [vsmash](https://profiles.wordpress.org/vsmash/)

[Sćahnyć](https://downloads.wordpress.org/plugin/vanilla-bean-slack-hooker.5.7.0.zip)

 * [Podrobnosće](https://hsb.wordpress.org/plugins/vanilla-bean-slack-hooker/#description)
 * [Pohódnoćenja](https://hsb.wordpress.org/plugins/vanilla-bean-slack-hooker/#reviews)
 *  [Instalacija](https://hsb.wordpress.org/plugins/vanilla-bean-slack-hooker/#installation)
 * [Wuwiće](https://hsb.wordpress.org/plugins/vanilla-bean-slack-hooker/#developers)

 [Podpěra](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/)

## Wopisanje

**Automated notifications from your WordPress site to your Slack, Mattermost and
Google Chat channels.**

Notify one or more webhook endpoints when things happen on your site: plugin installs
and updates, post publication, comments, signups, PHP errors, WooCommerce sales,
or anything you like via shortcodes, hooks and filter functions.

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
 * **PHP Error Alerts** – Route PHP errors to Slack with a call trace and configurable
   exemptions. Off by default _(NEW in 5.6.4)_
 * **Multiple webhook support** – Send to Slack, Mattermost, Google Chat, 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"]
    ```

or

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

or

    ```
    [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
 * **Error monitoring** – PHP errors pushed to a channel as they happen, with a 
   call trace
 * **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

#### Contact

We can be found at:

 * Website: [Velvary Contact](http://www.velvary.com.au/contact-us)
 * Twitter: @VelvaryVanilla
 * Email: info@velvary.com.au or support@velvary.com.au

## Fota wobrazowki

[⌊Example of WordPress monitoring notifications in Slack⌉⌊Example of WordPress monitoring
notifications in Slack⌉[

Example of WordPress monitoring notifications in Slack

[⌊Admin settings page: default endpoints for Slack, Mattermost, Google Chat or email⌉⌊
Admin settings page: default endpoints for Slack, Mattermost, Google Chat or email⌉[

Admin settings page: default endpoints for Slack, Mattermost, Google Chat or email

[⌊Rich formatted data messages with structured fields⌉⌊Rich formatted data messages
with structured fields⌉[

Rich formatted data messages with structured fields

[⌊Plugin management notifications⌉⌊Plugin management notifications⌉[

Plugin management notifications

[⌊WooCommerce sales notifications⌉⌊WooCommerce sales notifications⌉[

WooCommerce sales notifications

[⌊Notification settings: choose which WordPress events are sent, including PHP error
alerts⌉⌊Notification settings: choose which WordPress events are sent, including
PHP error alerts⌉[

Notification settings: choose which WordPress events are sent, including PHP error
alerts

[⌊Send a test notification to check your endpoints⌉⌊Send a test notification to 
check your endpoints⌉[

Send a test notification to check your endpoints

[⌊The same notifications delivered to Google Chat⌉⌊The same notifications delivered
to Google Chat⌉[

The same notifications delivered to Google Chat

## Instalacija

 1. **Via WordPress Admin (Recommended)**
 2.  * Navigate to Plugins > Add New
     * Search for „Vanilla Bean Slack Hooker“
     * Click Install Now and then Activate
 3. **Manual Installation**
 4.  * Download the plugin ZIP file
     * Upload to `/wp-content/plugins/vanilla-bean-slack-hooker/`
     * Activate through the Plugins menu in WordPress
 5. **Configuration**
 6.  * Go to Vanilla Beans > Slack Hooker in your WordPress admin
     * Add your webhook URLs (Slack, Mattermost, Google Chat, etc.)
     * Configure notification preferences
     * Test your setup with the built-in test message feature

## HSP

### What webhook services are supported?

Slack, Mattermost and Google Chat. Custom endpoints that accept a Slack-style payload
also work. Email addresses can be used as endpoints instead of a webhook.

Google Chat support is new in this release. If a message does not arrive, please
tell us at support@velvary.com.au and include the webhook host, so we can fix it.

### Are messages sent immediately?

By default, messages are queued and sent via WordPress cron to avoid blocking page
loads. You can force immediate sending by setting `sendnow="true"` in shortcodes
or `$now=true` in programmatic calls.

### Can I send to multiple channels at once?

Yes! You can configure multiple default endpoints in the admin settings, or specify
additional endpoints using the `alsoto` parameter in shortcodes and programmatic
calls.

### What data is included in WooCommerce notifications?

The order total, plus an admin link to open the order in WooCommerce.

### Can I get PHP errors sent to Slack?

Yes. PHP Error Alerts sends PHP errors to your endpoint with a call trace, and lets
you exempt errors you do not want to hear about. It ships disabled, so switch it
on at Vanilla Beans > Slack Hooker > Notifications > PHP Error Alerts.

### Is the plugin compatible with multisite?

Yes, the plugin works on WordPress multisite installations. Each site maintains 
its own webhook configuration and notification settings.

### Can I customize the message format?

Absolutely! The new data message functions (5.5.2+) allow you to create rich formatted
messages with custom colors, structured data fields, and flexible styling options.

## Pohódnoćenja

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

### 󠀁[Simple](https://wordpress.org/support/topic/simple-213/)󠁿

 [vsmash](https://profiles.wordpress.org/vsmash/) 3. septembra 2016

Well, I'm the dev so I'm giving it 5 stars, but I will keep trying to improve it.

 [ Čitajće 1 pohódnoćenje ](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/)

## Sobuskutkowarjo a wuwiwarjo

„Vanilla Bean Slack Hooker“ je softwara wotewrjeneho žórła. Slědowacy ludźo su k
tutomu tykačej přinošowali.

Sobuskutkowarjo

 *   [ vsmash ](https://profiles.wordpress.org/vsmash/)

[Přełožće „Vanilla Bean Slack Hooker“ do swojeje rěče.](https://translate.wordpress.org/projects/wp-plugins/vanilla-bean-slack-hooker)

### Na wuwiću zajimowany?

[Přehladajće kod](https://plugins.trac.wordpress.org/browser/vanilla-bean-slack-hooker/),
hladajće do [SVN-repozitorija](https://plugins.svn.wordpress.org/vanilla-bean-slack-hooker/)
abo abonujće [wuwiwanski protokol](https://plugins.trac.wordpress.org/log/vanilla-bean-slack-hooker/)
přez [RSS](https://plugins.trac.wordpress.org/log/vanilla-bean-slack-hooker/?limit=100&mode=stop_on_copy&format=rss).

## Protokol změnow

#### 5.6.15

_Release Date: July 14, 2026_

 * Fixed deprecation warnings on the settings screen under PHP 8.2 and newer
 * The settings screen now tells you if another plugin is running an out-of-date
   copy of the shared options framework, instead of failing quietly
 * Fixed settings fields that could error when an option had never been saved

#### 5.6.13

_Release Date: July 13, 2026_

 * Fixed: a notification containing invalid characters — a PHP error message, or
   text pasted from Word — was silently discarded instead of sent
 * Fixed: saving another plugin’s settings could fire a Slack Hooker test notification

#### 5.6.11

_Release Date: July 12, 2026_

 * Fixed the [slackhooker] shortcode, which had stopped sending
 * NEW: Google Chat webhook support
 * Fixed notifications to multiple endpoints: a later endpoint could inherit an 
   earlier one’s channel and @here mention
 * Email endpoints now receive readable text instead of raw data
 * Corrected the minimum WordPress version to 5.9, and declared a minimum PHP version

#### 5.6.9

_Release Date: July 12, 2026_

 * Hardened HTML attribute escaping in the settings framework

#### 5.6.8

_Release Date: July 7, 2026_

 * Version bump only; no functional changes

#### 5.6.7

_Release Date: July 7, 2026_

 * Version bump only; no functional changes

#### 5.6.6

_Release Date: July 7, 2026_

 * Version bump only; no functional changes

#### 5.6.5

_Release Date: July 6, 2026_

 * Moved the settings framework to a shared, centrally maintained library. Internal
   change; the settings form behaves as before

#### 5.6.4

_Release Date: May 26, 2026_

 * **NEW: PHP Error Alerts** – Route PHP errors to Slack with a call trace and configurable
   exemptions. Disabled by default; enable at Vanilla Beans > Slack Hooker > Notifications

#### 5.6.3

_Release Date: May 25, 2026_

 * Confirmed compatible with WordPress 7.0 and PHP 8.3
 * Fixed a translation-loading notice on WordPress 6.7 and later
 * Resolved a PHP 8.2 deprecation in the settings framework

#### 5.5.2

_Release Date: October 3, 2025_

 * **NEW: Formatted data message support** – Rich attachments with name-value pairs
 * **NEW: vbean_send_data() function** – Send structured data messages easily
 * **NEW: vbean_build_data_message() function** – Build custom attachment messages

#### 5.5.0

_Release Date: April 21, 2025_

 * Fixed overly zealous escaping of message content

#### 5.4.6

_Release Date: April 21, 2025_

 * **Security update** – Enhanced input filtering, validation and sanitization
 * Removed unneeded files
 * Tested with WordPress 6.8 and PHP 8.2

#### 5.3.1

 * Tested with WordPress 6.5 and PHP 8.2

#### 5.2.14

 * **Bugfix** – Fixed default channel reference typo affecting plugin upgrade notifications

#### 5.2.11

 * **Bugfix** – Fixed default channel reference issue in plugin upgrade notifications

#### 5.2.7

 * Fixed versioning inconsistency

#### 5.2.0

 * **NEW: Email notification support** – Use email addresses as webhook endpoints

#### 5.1.7

 * Fixed the admin menu

#### 5.1.6

 * Tested with WordPress 6.2

#### 5.1.3

 * Fixed double replacement in get_url() string processing

#### 5.1.2

 * Fixed default value handling for fields
 * Resolved missing admin menu item issue

#### 5.1.1

 * Fixed path error for MCE plugin integration

#### 5.1.0

 * **NEW: Optional cron messaging** – Support for environments without cron

#### 5.0.0

_Major overhaul – Previous settings not carried forward_

 * **NEW: Notification overrides** – Per-endpoint configuration
 * **NEW: Alert mentions** – Add @here, @channel, @everyone to endpoints
 * Improved admin layout and user experience
 * Tested with PHP 8.1 and WordPress 6.1

#### 4.0.5

 * Fixed JavaScript naming conflict
 * Corrected CSS path issues

#### 4.0.3

 * **Bugfix** – Improved Mattermost compatibility
 * Fixed text domain issues

#### 4.0.0

_Major overhaul – Previous settings not carried forward_

 * **NEW: Enhanced post alerts** – More notification types
 * **NEW: Customizable endpoints** – Per-alert configuration
 * Complete codebase rewrite for better performance

#### 3.30

 * Added support for endpoints in channels

#### 3.22

 * **Bugfix** – Fixed post status change notifications

#### 3.21

 * Tested with WordPress 6.1 and PHP 8.1

#### 3.10

 * **NEW: Post/page publication notifications**
 * Added site URL to notifications for better identification

#### 3.05

 * Added system plugin updater integration

#### 3.04

 * Fixed broken image references

#### 3.03

 * Cosmetic improvements

#### 3.02

 * **NEW: WooCommerce sales notifications**

#### 3.00

 * **NEW: Mattermost compatibility**

#### 2.60

 * Added current user information to plugin alerts

#### 2.55

 * Added toggle option for help display

#### 2.47

 * Enabled inheritance of v2.46 channel defaults

#### 2.46

 * **NEW: Channel selection** for default alerts

#### 2.45

 * Fixed test message typo

#### 2.44

 * **NEW: Plugin management notifications** – Install, update, delete alerts
 * Tested with WordPress 5.3

#### 2.20

 * Migrated from cURL to the WordPress HTTP API

#### 2.14

 * Updated @channel syntax for the latest Slack API

#### 2.13

 * Fixed plugin validation update bug
 * Added programmatic examples to the settings page

#### 2.12

 * Updated plugin icon

#### 2.11

 * Added missing menu icon

#### 2.10

 * Tested with PHP 7.1 and WordPress 4.7

#### 2.0

 * **NEW: Repetition prevention** – Avoid spam notifications
 * **NEW: Multiple webhook support**

#### 1.50

 * Fixed icon display issue in notifications

#### 1.42

 * Set delayed send to properly flag Slack as working

#### 1.41

 * **Performance improvement** – Moved to a cron job to prevent page load delays

#### 1.24

 * Tested with WordPress 4.5

#### 1.23

 * Updated 404 error handling

#### 1.22

 * Updated common functions

#### 1.21

 * **NEW: Default icon support**

#### 1.2

 * **NEW: Default comment alerts**

#### 1.1

 * Fixed broken plugin download link

#### 1.01

 * Fixed shortcode documentation bug

#### 1.0

 * Initial release – Slack webhook integration

## Meta

 *  Version **5.7.0**
 *  Last updated **3 měsacy**
 *  Active installations **20+**
 *  WordPress version ** 5.9 abo nowši **
 *  Tested up to **7.0.7**
 *  PHP version ** 7.4 abo nowši **
 *  Language
 * [English (US)](https://wordpress.org/plugins/vanilla-bean-slack-hooker/)
 * Tags
 * [alerts](https://hsb.wordpress.org/plugins/tags/alerts/)[Mattermost](https://hsb.wordpress.org/plugins/tags/mattermost/)
   [Notifications](https://hsb.wordpress.org/plugins/tags/notifications/)[slack](https://hsb.wordpress.org/plugins/tags/slack/)
   [webhook](https://hsb.wordpress.org/plugins/tags/webhook/)
 *  [Rozšěrjeny napohlad](https://hsb.wordpress.org/plugins/vanilla-bean-slack-hooker/advanced/)

## Pohódnoćenja

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/reviews/)

## Sobuskutkowarjo

 *   [ vsmash ](https://profiles.wordpress.org/vsmash/)

## Podpěra

Chceće něšto prajić? Trjebaće pomoc?

 [Forum pomocy pokazać](https://wordpress.org/support/plugin/vanilla-bean-slack-hooker/)

## Darić

Chceće dalewuwiwanje tutoho tykača podpěrać?

 [ Za tutón tykač darić ](http://www.velvary.com.au/vanilla-beans/wordpress/slack-hooker/)