Because it can help you manage your websites, and stay on top of changes, by sending notifications to your Slackbot.
Each event can be customized to allow you to send different event notifications to different Slack channels, e.g you can send core, theme and plugin updates to your wp-development channel while all of your post changes go to your wp-content channel..
The function accepts the following parameters $webhook id or url provide the URL or ID of one stored in settings $message the message you want to send $channel OPTIONAL the channel you want to send message to.
Rock Slackbot has filters setup to allow you to tweak each WordPress notification before it's sent.
Filter all WordPress notifications filter rock the slackbot notification { Change the pieces Return the notification return $notification }.
You can find ID for each of your webhooks on their edit screen in the add filter, 'filter rock the slackbot notification webhook, 10, 3 ) function filter rock the slackbot notification webhook { Change the pieces Return the notification return $notification }.
The event slugs are listed below add filter, 'filter rock the slackbot notification event, 10, 3 ) function filter rock the slackbot notification event { Change the pieces Return the notification return $notification }.
This filter allows you to change any payload sent to Slack in outgoing webhook. function filter rock the slackbot outgoing webhook payload { Change the payload Return the payload return $notification } Notification Events..
Menus menu item deleted Passed To Filters menu WP Post object data of the menu that held the menu item menu item id ID of the menu item that was deleted...
Media add attachment Passed To Filters attachment post WP Post object data for the attachment you added... edit attachment Passed To Filters attachment post WP Post object data for the attachment you edited... delete attachment Passed To Filters attachment post WP Post object data for the attachment you deleted...
Read more