Custom Triggers

The following documentation is written for developers. To follow this documentation, you will need an advanced understanding of PHP and WordPress development.

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.

aw-custom-trigger

Custom Trigger Example Code