Hook for event publication
-
I’m currently building a notification system for when an event is added/changed.
For this I use the ’em_event_save’ hook. This works all fine and good but I have a problem with differentiating between a new event and a changed one.I was planning on using the ‘event_date_modified’ field in the ’em_events’ table. (if the field is NULL, it would be the first time published).
But the problem here is that for a drafted event, then later published, this field
(obviously) is not NULL. Is there a specific hook or perhaps a different field I can check to make sure an event is published for the first time vs a changed event?Hope I formulated my question clearly, if anything is unclear let me know!
Kind regards,
TeejoP.S.
Love the plugin by the way, gerat functinallity and easy to use! Perfect for what I’m using it for ^^
The topic ‘Hook for event publication’ is closed to new replies.