Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Vanilla Bean Slack Hooker

Slack Hooker provides shortcode and function access to Slack's incoming webhook to your slack application.

*Automated notifications from your Wordpress * to your Slack 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(get_option('vbean_slack_hooker_setupvalid')){
    \VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification');
 }
if(get_option('vbean_slack_hooker_setupvalid')){
    \VanillaBeans\SlackHooker\vbean_slackhooker('Send nudes','mychannel','Username',':specific_icon:');
 }
if(get_option('vbean_slack_hooker_setupvalid')){
    \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

Author vsmash
Profile
Contributors vsmash
Tags api, messag, slack, webhook
  1. vanilla-bean-slack-hooker screenshot 1

    Example of wordpress monitoring

  2. vanilla-bean-slack-hooker screenshot 2

    Admin instruction page

  3. vanilla-bean-slack-hooker screenshot 3

    Another example of wordpress monitoring

  4. vanilla-bean-slack-hooker screenshot 4

    Screenshot of default options

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

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

Share  
Download
Version 2.11

Requires WordPress version: 3.4 or higher

Compatible up to: 4.7.2

Last Updated 04 Feb 2017

Date Added: 21 Dec 2015

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

5 stars
1 ratings
226 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0