The syntax to get your custom field is:
get_post_meta($post_id, $key, $single);
In your context, you should try:
$tracking_id = get_post_meta($order->get_order_number(), 'Tracking_ID', true);
To show you in your example:
<?php /* translators: %s: Site title */
$tracking_id = get_post_meta($order->get_order_number(), 'Tracking_ID', true); ?>
<p><?php printf( esc_html__( 'Your %s order is completed. Your tracking number is: %s', 'woocommerce' ), esc_html( wp_specialchars_decode( get_option( 'blogname' ), esc_html($tracking_id) ) ) ); ?></p>
Related Posts:
- How to automatically apply woocommerce product title to all product images alt tags?
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- WooCommerce: update custom fields after checkout validation failure
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Trouble checking if custom woocommerce checkout field is empty or not
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- WP All Import / Update stock quantity from multiple XML files
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Display custom field value in woocommerce variable product via jQurey
- WooCommerce multiple custom fields code
- Grabbing value of input field inside of array
- How to add product in woocommerce with php code [closed]
- Creating custom Woocommerce attribute taxonomies from a plugin
- How to handle a custom form in wordpress to submit to another page?
- How to get the original price of the product in woocommerce?
- How to use multiple query with same meta key
- How to Remove a Filter from the Admin List Table?
- Remove commas from WooCommerce checkout addresses fields
- WooCommerce Link to Product Category
- Removing WordPress profile fields from non-admins
- Use ajax to update_post_meta
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- Append a term to WooCommerce product existing product category terms
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- If Meta Checkbox is checked, do something?
- Show custom field if it exists, and show different elements if it doesn’t
- Writing scripts using WordPress / WooCommerce classes?
- How to make custom total price reactive in navigation
- Change description on specific WooCommerce product status change
- Woocommerce – Filter Variable Products by Variation Attributes and Variations Regular Price
- Custom field value not saving when it contains a URL?
- How to add a second ‘place order’ button in WooCommerce [closed]
- Woocommerce redirect thankyou page based on product ID doesn’t empty Cart
- Woocommerce product variation backorder
- Status 400 for AJAX POST Request with admin-ajax.php
- WooCommerce Webhooks not firing because of error in wp-includes/meta.php
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- Sum the total amount of a specific product purchased per user and display in table
- how to retrieve a value if a checkbox is checked
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Woocommerce change prices for a certain country [closed]
- Find a way to retrive data updated through metabox plugin to web page
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Remove item in Checkout
- Woocommerce – get_items() returns empty array
- Include js script ONLY on woocommerce product category pages? [closed]
- Convert Featured products loop into Recent products loop?
- Add a counter for mouseovers (custom field)
- the_meta – no get_the_meta query?
- Woocommerce order status payment
- Payment field disappears on custom Paypal plugin
- Creating a brand attribute as a variable
- How can I add diffrent editable text fields?
- How to remove Login from in my account page
- Include custom fields in search
- update_term_meta() only updating once on certain meta keys
- I am having errors with checkout on wordpress
- How to access specific product id on other pages/posts?
- Programmatically add a product to the cart and set price to zero when buying from certain category
- I want to show cart items number if any or nothing, simple CART text
- How to retrieve quantity input field by id in woocommerce
- Get only relevant sub-category of category “Genre” that applies to current product only
- Using zip code to display custom data in Admin Order Details
- Generating 3 random numbers and saving them in database
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- ACF – Can’t get custom post type by taxonomy
- Including user data in “new user notification email”
- Add Shortcode to ::before class
- i want add conditional for add category in wordpress
- WooCommerce get products based on the taxonomy
- Woocommerce Add custom “Add to cart button” in single page with tags
- Woocommerce remove menu item on myaccount dashboard
- append data to mysql table via submit button coded in php – not working
- When working with a post, almost all wp_postmeta are deleted
- random woocommerce categories are not showing when count enabled?
- What syntax is this? “{{post.price}}”
- PHP – Woocommerce 3.2 Add variable shipping insurance with multiple “else if ” conditions
- how to display woocomerce description of each category in wordpress? [closed]
- WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
- WooCommerce – Add product category below product price [closed]
- woocommerce plugin bugs
- Adding my own custom template page but got white page
- How to get the first letter from custom field?
- Meta box not saving spaces
- Woocommerce Price Text
- If Elseif Query
- Display custom meta box in my template file
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- wc_add_notice not working on cart page
- How do I update product shipping using PHP in WooCommerce?
- How can I edit the WooCommerce Mini DropDown Cart to read as follows
- Too many if’s and else if’s ?? – Must be better way [closed]
- Advanced Custom Fields Show PHP in Text Areas
- How to set variable to specific field when querying
- WooCommerce Checkout Cart [closed]
- How can I change the location where the custom field is displayed in the Quick Edit tab in WordPress
- Woocommerce – add tracking code to another email template