Title: programmatically fetch custom field contents
Last modified: October 30, 2017

---

# programmatically fetch custom field contents

 *  [nicdimmock](https://wordpress.org/support/users/nicdimmock/)
 * (@nicdimmock)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/programmatically-fetch-custom-field-contents/)
 * Hi!
    Using your t-shirt printing example, I would like to programmatically retrieve
   the custom “name_on_tshirt” and “gift_wrapt” options and pass them onto the printers
   without relying on the automated email. Do you have a function I can call to 
   receive custom field entries based on order->id and product->id perhaps?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [deeveedee](https://wordpress.org/support/users/deeveedee/)
 * (@deeveedee)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/programmatically-fetch-custom-field-contents/#post-9652586)
 * [https://wordpress.org/support/topic/reading-the-wc-fields-contents/](https://wordpress.org/support/topic/reading-the-wc-fields-contents/)

Viewing 1 replies (of 1 total)

The topic ‘programmatically fetch custom field contents’ is closed to new replies.

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [deeveedee](https://wordpress.org/support/users/deeveedee/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/programmatically-fetch-custom-field-contents/#post-9652586)
 * Status: not a support question