A couple of weeks back, I created a simple little plugin called Event Notifier. The purpose was to allow me to send an email whenever an action or filter is called. While it is functional and does simply that, I wanted a little bit more. So I have added Slack integration, a Dashboard widget; to log events to the dashboard, and a content box to customize the message sent.
The issue of common hooks being called frequently, has also been addressed by adding a “recurrence” setting. This logs each call, then after set limit, sends out the captured log.
While it’s pretty simple, it has found way more uses that I expected. Also, it’s free and on the wordpress.org repo! take a look. https://wordpress.org/plugins/event-notifier/
Hi David,
I am not a programmer, but I can configure WP well. However I’m having trouble creating a “Viewing a custom URL” hook (hopefully I’ve described it correctly).
What I want is to create an alert in Slack every time a particular URL in my site is accessed. And I do not know how to carry out this process, I hope you can help me.
Thank you for sharing your knowledge!
Hi There,
Sorry for the delay, for some reason I didn’t get notified.
If you still needing this, the easy solution is to trigger your own event. here’s a snippet you can try:
https://gist.github.com/DavidCramer/fa880a92f6f76b978e01ccbf2b039f8d
Snippet got eaten by the spam filter. Oh noes!