1. Documentation /
  2. AutomateWoo /
  3. Variables /
  4. Custom Variables

Custom Variables

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

↑ Back to top

In this example by extending the class AutomateWoo\Variable_Abstract_Datetime the variable will support the modify and format parameters.