Docs>Automations

Variables

Variables are used to insert dynamic data into your action, allowing you to customise your messages based on data from the triggered event.

Post variables

Variable NameDescription
{{post.id}}Display the post ID
{{post.title}}Display the post title
{{post.link}}Display the post url
{{post.excerpt}}Display the post Excerpt
{{post.author}}Display the post authors display name
{{post.date | format=” field=’created|modified’}}Display the post created or modified date via the field argument, display the default wordpress date format or pass a custom format.
{{post.custom | field=”}}Display a custom field using the field argument.

User variables

Variable NameDescription
{{user.id}}Display users id
{{user.email}}Display users email address
{{user.username}}Display users username
{{user.display_name}}Display users display name
{{user.full_name}}Display users full name
{{user.first_name}}Display users first name
{{user.last_name}}Display users last name
{{user.custom | field=”}Display users custom field value

WooCommerce abandoned cart variables

Variable NameDescription
{{wc_cart.email}}Display the customers email address
{{wc_cart.generate_coupon | template=”}}Generate and display a WooCommerce coupon, set which coupon to clone using the template parameter.
{{wc_cart.full_name}}Display the customers full name
{{wc_cart.first_name}}Display the customers first name
{{wc_cart.last_name}}Display the customers last name
{{wc_cart.view_button | text=”}}Display a button that allows the customer to view and restore their cart.
{{wc_cart.view_link}}Display a link to restore the customers cart
{{wc_cart.items}}Display a list of the carts items.

WooCommerce order variables

Variable NameDescription
{{wc_order.id}}Display order id
{{wc_order.email}}Display the customers email address
{{wc_order.generate_coupon | template=”}}Generate and display a WooCommerce coupon, set which coupon to clone using the template parameter.
{{wc_order.full_name}}Display the customers full name
{{wc_order.first_name}}Display the customers first name
{{wc_order.last_name}}Display the customers last name
{{wc_order.items | template=” review_url=” text=”}}Display a list of the carts items, optionally pass a string to the template argument with the name of template to user (review or items), if using review you can customize the review url using the optional review_url argument (by default it uses the single product url), customize the review link text using the optional text argument.

General variables

Variable nameDescription
{{general.user_emails | role=”}}Return a comma seperated list of user emails based on the users role, by default it returns list of subscriber emails.
{{general.posts}}Display a list of recently published posts