Title: Access fields in php files
Last modified: February 1, 2020

---

# Access fields in php files

 *  Resolved [mosabua](https://wordpress.org/support/users/mosabua/)
 * (@mosabua)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/access-fields-in-php-files/)
 * Hello,
 * how can I get the information of the checkout fields in a custom email template(
   php file)
 * thanks
    werner

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/access-fields-in-php-files/#post-12440825)
 * hello [@mosabua](https://wordpress.org/support/users/mosabua/)
    please check 
   this threated [https://wordpress.org/support/topic/custom-fields-no-longer-in-emails/](https://wordpress.org/support/topic/custom-fields-no-longer-in-emails/)
   kind regards
 *  Thread Starter [mosabua](https://wordpress.org/support/users/mosabua/)
 * (@mosabua)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/access-fields-in-php-files/#post-12445094)
 * Hello [@quadlayers](https://wordpress.org/support/users/quadlayers/)
 * thanks for your reply. I already found a way to access the data. I justed used
   the get_post_meta function :
 *     ```
       $objekt = get_post_meta($order->get_id(), '_shipping_address_2' ); 
       echo $objekt[0];
       ```
   
 * Thanks for your time and your great plugin
 *  [moriedan](https://wordpress.org/support/users/moriedan/)
 * (@moriedan)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/access-fields-in-php-files/#post-12571942)
 * Hey There I don’t want to use the fields in emails, i need to pull these data
   to an other plugin’s register fields i tried mosabuas way ($objekt = get_post_meta(
   $order_id, ‘additional_boy’ ); ) or like other fields $additional_boy = $order_data[‘
   additional_boy’];
    but non of em works Any one knows how can I get my custom 
   fields from other php’s?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Access fields in php files’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-checkout-manager/assets/icon-256x256.jpg?rev
   =2911736)
 * [Checkout Field Manager (Checkout Manager) for WooCommerce](https://wordpress.org/plugins/woocommerce-checkout-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-checkout-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-checkout-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-checkout-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-checkout-manager/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [moriedan](https://wordpress.org/support/users/moriedan/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/access-fields-in-php-files/#post-12571942)
 * Status: resolved