Shortcodes Overview & Complete Reference
ThankRedirect includes a library of shortcodes that display live order data on any WordPress page. Place them on your custom Thank You page and they’ll automatically show the customer’s real order details — order number, total, items purchased, and more.
How Shortcodes Work
When ThankRedirect redirects a customer after checkout, it appends the order ID and a security key to the destination URL as query parameters:
https://yourstore.com/thank-you?order_id=123&key=wc_order_abc123xyz
ThankRedirect’s shortcodes read these parameters, verify the order key for security, and display the corresponding order data. This happens automatically — no configuration needed beyond placing the shortcode on your page.
Complete Shortcode Reference
Free Shortcodes
These shortcodes are available in both the free and Pro versions:
| Shortcode | Output | Example Output |
|---|---|---|
[wpkin_order_number] | The order number | 1042 |
[wpkin_order_total] | Total order amount with currency | £89.00 |
[wpkin_customer_name] | Customer’s full name | Sarah Johnson |
[wpkin_order_status] | Current order status | Processing |
[wpkin_transaction_id] | Payment transaction ID | ch_3OqXzP2eZvKYlo2C |
[wpkin_order_created_date] | Order creation date | 23, Mar 2026 |
Pro Shortcodes
These shortcodes require the Pro version:
| Shortcode | Output |
|---|---|
[wpkin_first_name] | Customer’s first name only |
[wpkin_customer_email] | Customer’s email address |
[wpkin_billing_address] | Full formatted billing address |
[wpkin_shipping_address] | Full formatted shipping address |
[wpkin_billing_phone] | Billing phone number |
[wpkin_items] | Table of items: product name, quantity, price |
[wpkin_item_count] | Total number of items in order |
[wpkin_downloads] | List of downloadable files with links |
[wpkin_tax] | Tax amount with currency formatting |
[wpkin_shipping] | Shipping cost with currency formatting |
[wpkin_currency] | Currency code (e.g., USD, GBP) |
[wpkin_coupon] | Applied coupon codes, comma-separated |
[wpkin_payment_method] | Payment method name (e.g., PayPal) |
[wpkin_shipping_method] | Shipping method used |
How to Add a Shortcode to Your Page
- Open your custom Thank You page in the WordPress editor
- Add a Shortcode block (Gutenberg) or type the shortcode directly into a text area (Classic editor)
- Type the shortcode exactly as shown in the table above, including the square brackets
- Save/update the page
In Elementor, use a Text widget or Shortcode widget and paste the shortcode in.
What Shows Before a Real Order?
When you’re editing or previewing the page without a real order in the URL, the shortcodes display placeholder demo text so you can see how your layout looks. They only show real order data when a customer lands on the page after checkout — when the order_id and key parameters are present and valid in the URL.
Security
ThankRedirect verifies the order key before displaying any data. This means a person can’t see another customer’s order details just by guessing an order ID. The key acts as a secret token that only the real customer’s browser has in their URL.
Pro tip: Combine multiple shortcodes to create a rich order summary. For example: “Thank you,[wpkin_first_name]! Your order[wpkin_order_number]for[wpkin_order_total]is now[wpkin_order_status].”