This is a Developer level doc. If you are unfamiliar with code and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our Support Policy.
The following code is an example of how to create a custom AutomateWoo variable. This example looks at a way that you could dynamically display text based on the number of items in an order. E.g. item or items.
Example – Custom date variable for meta field
In this example by extending the class
AutomateWoo\Variable_Abstract_Datetime the variable will support the