Tech

Placeholders for Message Template

Placeholders for Message Template

Below is the list of placeholders you can use in your message template. Below shortcodes are grouped, so that they are easy to read and find.

General

{{sitename}} Site Name
{{siteurl}} Site URL
{{wordpress-url}} WordPress URL
{{tagline}} Tagline
{{privacy-policy}} Privacy Policy Link

WordPress Profile Details

{{wp-first-name}} First Name
{{wp-last-name}} Last Name
{{wp-username}} Username
{{wp-nickname}} Nickname
{{wp-display-name}} Display Name
{{wp-email}} Email
{{wp-user-website}} User Website
{{wp-user-bio}} User Bio

WooCommerce Order Details

{{wc-order}} Order Number
{{wc-order-id}} Order ID / Post ID
{{wc-order-status}} Order Status
{{wc-order-date}} Order Date
{{wc-product-names}} All Item / Product Names in Order
{{wc-product-name-count}} First item name then item counter
{{wc-total-products}} Total Number or Products in Order
{{wc-total-items}} Total Number of Items in Order
{{wc-order-items}} Names of all products in Order with item counter
{{wc-order-amount}} Total Amount (Incl. Tax)
{{wc-discount}} Total Discount Amount
{{wc-tax}} Total Tax Amount
{{wc-order-amount-ex-tax}} Total Amount (Excl. Tax)
{{wc-payment-method}} Payment Method
{{wc-transaction-id}} Payment Transaction ID
{{wc-shipping-method}} Shipping Method
{{wc-shipping-cost}} Shipping Cost
{{wc-refund-amount}} Refunded Amount
{{wc-refund-reason}} Refund Reason
{{wc-order-notes}} Order Notes Provided at the time of Order
https://yoursiteurl.com/checkout/order-received/{{wc-order}}/?key={{post-_order_key}} WC Order confirmation link
https://yoursiteurl.com/checkout/order-pay/{{wc-order}}/?pay_for_order=true&key={{post-_order_key}} Pending Payment page link

WooCommerce Billing Details

{{wc-billing-first-name}} Billing First Name
{{wc-billing-last-name}} Billing Last Name
{{wc-billing-company}} Billing Company
{{wc-billing-address-line-1}} Billing Address Line 1
{{wc-billing-address-line-2}} Billing Address Line 2
{{wc-billing-city}} Billing City
{{wc-billing-postcode}} Billing Postcode / ZIP
{{wc-billing-state}} Billing State / County
{{wc-billing-country}} Billing Country
{{wc-billing-email}} Billing Email
{{wc-billing-phone}} Billing Phone

WooCommerce Shipping Details

{{wc-shipping-first-name}} Shipping First Name
{{wc-shipping-last-name}} Shipping Last Name
{{wc-shipping-company}} Shipping Company
{{wc-shipping-address-line-1}} Shipping Address Line 1
{{wc-shipping-address-line-2}} Shipping Address Line 2
{{wc-shipping-city}} Shipping City
{{wc-shipping-postcode}} Shipping Postcode / ZIP
{{wc-shipping-state}} Shipping State
{{wc-shipping-country}} Shipping Country

Stock Notifications (Admin/Vendor)

{{product-name}} Name of Product
{{product-quantity}} Quantity of Product Left

Multivendor / Marketplace Plugins

{{vendor-name}} Name of Vendor
{{vendor-product-names}} Name of Product
{{vendor-total-items}} Total Number of Items in Order
{{vendor-order-items}} Names of all products in Order with item counter
{{vendor-order-amount}} Total Amount (Incl. Tax)

New Post

{{post-title}} Post Title
{{post-content}} Post Content
{{post-link}} Post Link
{{post-excerpt}} Post Excerpt
{{post-author}} Post Author
{{post-date}} Post Date
{{post-category}} Post Category(s)
{{post-tags}} Post Tags

Related Articles

Back to top button
Enable Notifications OK No thanks