Joinotify

Placeholders

Placeholders are fragments written as {{ name }} that the plugin replaces with the real value at send time.

Writing:

Hi {{ first_name }}, we got your details! Someone will reach out shortly.

The customer receives:

Hi John, we got your details! Someone will reach out shortly.

Inside the builder, placeholders show up highlighted and clickable in the message field, with a warning when the chosen placeholder does not exist on the workflow's trigger.

The placeholder has to match the trigger

Every placeholder declares which triggers it works on. Since version 2.1.0 that applies at send time too, not only in the preview: a placeholder outside the trigger's context is left as-is instead of resolving to a wrong value. Placeholders marked as global work on any trigger.

WordPress

PlaceholderTriggersDescription
{{ first_name }}allThe user's first name
{{ last_name }}allThe user's last name
{{ email }}allThe user's e-mail
{{ site_url }}allThe site URL
{{ site_name }}allThe site name
{{ current_date }}allToday's date
{{ user_meta[META_KEY] }}allA user meta value. Replace META_KEY with the key you want, e.g. billing_phone
{{ post_title }}post status changedThe post title
{{ post_date }}post status changedThe publish date
{{ post_content }}post status changedThe post content, text only
{{ post_link }}post status changedThe post link
{{ post_tags }}post status changedThe post tags, comma separated
{{ post_categories }}post status changedThe post categories, comma separated
{{ post_featured_image }}post status changedThe featured image URL
{{ reset_password_link }}password reset requestedThe password reset link

WooCommerce

On the order triggers, the object being processed is the order. The customer account and stock triggers have no order, and since 2.7.0 the placeholders below are not even offered on them — use the customer and product ones. The coupon placeholders are still offered on every WooCommerce trigger.

Totals already carry the currency symbol

Since 2.3.0, {{ wc_order_total }} and the other amount placeholders come out with the currency symbol, such as $99.90. Workflows that wrote {{ wc_currency_symbol }} {{ wc_order_total }} now show the symbol twice — drop the {{ wc_currency_symbol }}.

PlaceholderDescription
{{ wc_billing_first_name }}Customer's billing first name
{{ wc_billing_last_name }}Customer's billing last name
{{ wc_billing_email }}Billing e-mail
{{ wc_billing_phone }}Billing phone
{{ wc_shipping_phone }}Shipping phone
{{ wc_order_number }}Order number
{{ wc_order_status }}Current order status
{{ wc_order_date }}Order date
{{ wc_order_total }}Order total
{{ wc_currency_symbol }}The order's currency symbol
{{ wc_total_discount }}Total discount applied
{{ wc_total_tax }}Total tax
{{ wc_total_refunded }}Total refunded
{{ wc_coupon_codes }}Coupon codes used on the order
{{ wc_payment_method_title }}Payment method title
{{ wc_payment_url }}The order's payment URL
{{ wc_billing_full_address }}Full billing address (format configurable in the options)
{{ wc_shipping_full_address }}Full shipping address (format configurable in the options)
{{ wc_shipping_address }}Shipping cost and method, as plain text. Despite the name, it is not the address — for that use {{ wc_shipping_full_address }}
{{ wc_shipping_method_total }}Shipping cost and method, for example "R$ 20,00 via SEDEX", or only the method name when shipping is free
{{ wc_purchased_items }}Purchased products, with name and quantity, one per line
{{ wc_review_links }}Review link for each purchased product, one per line
{{ wc_first_product_review_path }}Review link of the first purchased product without the site address, such as product/shirt/#reviews — to complete a template URL button
{{ wc_checkout_field=[FIELD_ID] }}The value of a checkout field. Replace FIELD_ID with the field ID, e.g. billing_email

Digital products

Available from version 2.1.0, and only resolved once download access has been granted.

PlaceholderDescription
{{ wc_downloadable_items }}Name of each digital product in the order, one per line
{{ wc_download_links }}Name and link of each digital file, one per line
{{ wc_download_urls }}Download links only, without the file name, one per line
{{ wc_downloads_expiry }}Expiry date of the download access. Returns the closest date when files expire on different dates
{{ wc_downloads_remaining }}How many downloads the customer has left. Returns the smallest when files have different limits
{{ wc_account_downloads_url }}Link to the downloads area in the customer's account
{{ wc_download_link=[PRODUCT_ID] }}Download links for one specific product. Replace PRODUCT_ID with the product ID, e.g. 128

Customers and products

Since 2.7.0, on the Customer account created and Back in stock notice sent triggers (customer) and on the stock triggers (product).

PlaceholderDescription
{{ wc_customer_first_name }}The customer's first name
{{ wc_customer_last_name }}The customer's last name
{{ wc_customer_email }}The customer's e-mail
{{ wc_customer_phone }}The customer's phone
{{ wc_my_account_url }}Link to the My account page
{{ wc_product_name }}The product name
{{ wc_product_url }}The product link
{{ wc_product_sku }}The product SKU
{{ wc_product_stock_quantity }}The quantity in stock

The customer ones are read from the account. On a back in stock notice for someone who signed up without being logged in, the account registered with the same e-mail applies, when there is one.

Coupons created by the workflow

Available after the Discount coupon action in the same workflow.

PlaceholderDescription
{{ joinotify_coupon_code }}The coupon code
{{ joinotify_coupon_description }}The coupon description
{{ joinotify_coupon_discount_type }}Discount type — percentage or fixed amount
{{ joinotify_coupon_discount_value }}Discount amount
{{ joinotify_coupon_discount_formatted }}Amount formatted with currency or percentage, e.g. 10%
{{ joinotify_coupon_expires }}Coupon expiry, e.g. "Expires in 1 hour"

Loops

Available inside the body of the Loop action, from version 2.2.0. They work in every field of the action — caption, media URL, attachment URL and recipient.

PlaceholderDescription
{{ loop_value }}The current item's value
{{ loop_index }}The item index, starting at zero
{{ loop_number }}The item number, starting at one
{{ loop_count }}Total items in the collection
{{ loop_file_name }}The item's file name
{{ loop_download_url }}The item's download link
{{ loop_product_name }}The item's product name
{{ loop_product_id }}The item's product ID
{{ loop_item_name }}The item's name
{{ loop_item_quantity }}The item's quantity

Forms

Elementor and WPForms expose the same placeholder, which reads the value of any field on the submitted form.

PlaceholderDescription
{{ field_id=[FIELD_ID] }}The value of a form field

Replace FIELD_ID with the field ID. In the Elementor example below it would be {{ field_id=[field_3cf5068] }}; in the WPForms one, {{ field_id=[1] }}.

Where to find the field ID on an Elementor form Where to find the field ID on a WPForms form

HTTP request responses

After an HTTP request action, the response kept under a name is read like this — see Webhooks and HTTP requests.

PlaceholderDescription
{{ http:NAME.status }}The response's HTTP code
{{ http:NAME.ok }}true when the code is 2xx
{{ http:NAME.error }}Why the request failed, empty when it succeeded
{{ http:NAME }}The whole response body
{{ http:NAME.body.FIELD }}A field of a JSON response, with dots for nested ones

Artificial intelligence

The AI: Smart variable action generates a text the following actions use as {{ ai:NAME }}. These placeholders do not take modifiers yet.

Modifiers

Since 2.6.1, any placeholder takes modifiers after a pipe. They are applied from left to right on the value:

{{ wc_review_links | remove:"https://shop.com/" }}
{{ wc_payment_url | remove_home_url }}
{{ field_id=[12] | replace:"R$ ","" | remove:"." }}
ModifierEffect
remove:"text"Removes every occurrence of the text
replace:"from","to"Replaces every occurrence of one text with another
remove_home_urlTurns every link to this site into a path relative to it: https://shop.com/product/shirt/ becomes product/shirt/. Links to other sites are kept as they are

Arguments are separated by commas and quoted with " or '. A placeholder that does not resolve is left exactly as written, modifiers included, and an unknown modifier is skipped. They work on every placeholder, including those of other plugins.

A template's URL button

A URL button declares a fixed address with a variable at the end, such as https://shop.com/{{1}}. The value has to carry only what comes after the site address — which is exactly what remove_home_url does, and what {{ wc_first_product_review_path }} already delivers ready.

Developers register their own modifiers with joinotify_register_placeholder_modifier() — see Developer resources.

Custom placeholders

From version 2.0.0 you can create your own placeholders straight in the builder, from content types and site fields — WooCommerce orders included — without writing code. They show up in the same list as the built-in ones.

For placeholders that need logic, use the Joinotify/Builder/Placeholders_List filter or the joinotify_register_placeholders() helper; see Developer resources.

WhatsApp formatting

The message editor already converts visual formatting (bold, italic, emoji) to WhatsApp's own syntax. If you prefer to type it directly, the syntax is WhatsApp's — it is processed on Meta's servers and cannot be turned off.

EffectSyntax
Italic_text_
Bold*text*
Strikethrough~text~
Monospacethree backticks before and after
Bulleted list* text or - text per line
Numbered list1. text per line