Earlier quoted context omitted.
My business partner and I hit a wall when we tried to automate WordPress. We tried to implement a plugin where Events in WordPress would be triggered, evaluate Conditions and then execute Actions (Send email, Trigger Webhook at Zapier, Update fields over the triggered record, etc.) Turns out, WordPress is not architecturally ready for this much evolution. And that's when we got disenchanted from WordPress and went to…
This doesn't make any sense or you are explaining it badly. You are basically describing how every WordPress plugin already works via filters and actions (collectively referred to as hooks).
It's impossible to differentiate "Create a post" event from "Update a post"; they propagate the same event. Every minor change on the post also triggers this event type, along with others. Therefore, leading to scenarios where "On post creation" and "On update, this field of this post" would lead to the same workflow triggered. As an Automator, you don't want to trigger the same workflow for another event that you didn't intend to. Our idea was to use the Conditions to judge if this workflow would run or not, but...
We hit another roadblock; another issue was that when an event is triggered and conditions are to be evaluated, WordPress doesn't include in its payload the previous state of the fields, so if you want to do a "diff" (so you can tell which field values change) you then have to store the current state somewhere to be able to do such a "diff" to compare.
We then had two roads:
- Re-tool the core of WordPress with the functionality (with a lot of PHP hackery) that would enable us to run workflows the right way.
- Relying on the existing API and end up with the same feature set that Uncanny Automator plugin currently has.
So, instead of reinventing the wheel, we just dropped the idea.