Custom Triggers

Like most WordPress plugins, AutomateWoo can be extended by other developers to add functionality. AutomateWoo triggers are complex by nature and creating custom triggers is considerably more difficult than creating a custom function which can be easily tied to an action.

Below is an example of a custom trigger than can be triggered anywhere in your code by using the familiar WordPress function do_action(). The function accepts a single user ID which is then caught by the custom trigger, which in turn passes the user along to any workflows which are set up to use the custom trigger.


Custom Trigger Example Code