Vanilla Bean Slack Hooker

Description

*Automated notifications from your WordPress * 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-bonnet
use as well as shortcode access.

Some shortcode examples:

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

or

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

Messages are queued last in the PHP process to insure 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

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_slackhooker')){
    \VanillaBeans\SlackHooker\vbean_slacknotify(array('text'=>'Here is my notification','icon'=>':open_mouth:'));
 }

There are defaults for all except the message. You can specify:
* text – required. This is your message
* channel – defaults to ‘general’ or your admin default specified channel
* username – the identity you would like displayed as the sender in the Slack 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 php load.
* postto – overrides default webhook setting – comma separated webhook urls
* alsoto – extra webhooks on top of default webhook

Contact

We can be found at:
* (http://www.velvary.com.au/contact-us)
* Twitter: @VelvaryVanilla
* E: info@ or support@ velvary.com.au

Screenshots

  • Example of wordpress monitoring
  • Admin instruction page
  • Another example of wordpress monitoring
  • Screenshot of default options

Installation

Unzip into your plugins directory, install directly from
wordpress plugins site.

Reviews

September 3, 2016
Well, I'm the dev so I'm giving it 5 stars, but I will keep trying to improve it.
Read all 1 review

Contributors & Developers

“Vanilla Bean Slack Hooker” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

3.04

  • Broken Image fix

3.03

  • Cosmetic fix

3.02

  • Added woocommerce sales hook

3.00

  • Added compatibility with Mattermost

2.62

  • Added current site to default user

2.60

  • Added current user to plugin alerts

2.55

  • Added toggle option for help

2.47

  • Enabled inheritance of <v2.46 channel default for alerts

2.46

  • Enabled channel selection for default alerts

2.45

  • Fixed test msg typo

2.44

  • Added default notification options for when plugins are installed, updated etc
  • Tested against WP 5.3
  • Tested against Corona virus

2.20

  • Changed Curl to http-api

2.14

  • Changed @channel syntax to work with latest api

2.13

  • Fixed bug of slack plugin validation updating incorrectly
  • added programmatic examples to settings page

2.12

Updated Icon

2.11

Added missing menu icon

2.10

Tested against php7.1 and wordpress 4.7

2.0

  • Added repetition prevention functionality
  • Added support for multiple slack webhooks

1.50

Fixed issue with specified icon not displaying in notice

1.42

Set delayed send to flag slack as working

1.41

Moved slack message to immediate cron job so that it does not delay page load

1.24

Tested against wp 4.5

1.23

Updated 404 test

1.22

Updated common functions

1.21

Added support for default icon

1.2

Added default comment alert

1.1

Fix broken plugin download link

1.01

Shortcode in admin documentation bugfix

1.0

Initial release