Easily integrate WordPress events to a slack channel for monitoring and CI/CD integration.

  1. Go to slack.com and register for a free account
  2. On your wordpress site, add and activate the “Slack Notifications” plugin by dzorski
  3. From the WP admin section select the “Slack Notifications” icon
  4. Go to slack.com and setup a webhook as per https://api.slack.com/messaging/webhooks
    1. Create Slack app
    2. Call slack app ionoslabs-wordpress-events
    3. Select workspace
    4. Click create app
    5. Under add features create an incoming webhook
    6. In the next screen Activate incoming webhooks then scroll down and click on “Add new Webhook to Workspace”
    7. Select the channel for the web hook to post to and then click allow
    8. Copy curl command and test post from local system (must have curl installed to do this)
    9. Copy just webhook url from curl statement and paste in Webhook URL section in wordpress slack notification plugin
    10. Enter the name for the channel you would like the messages to appear in
    11. Enter a name for the Bot that will perform post ie.. ionoslabs-bot
    12. Click save settings and then Run Test, you should get a test notification in the slack channel
  5. Add notifications to slack as desired for page,post publishing and update etc..
  6. Test integration

Github

Download

Copy to Clipboard