Use woocommerce_email_customer_details.
function email_order_user_meta( $order, $sent_to_admin, $plain_text ) {
$meta = get_post_meta($order->ID, 'OIB');
if($meta){
/*** whatever format you like here ***/
echo '<tr>' . $meta '</tr>';
}
}
add_action('woocommerce_email_customer_details', 'email_order_user_meta', 30, 3 );
Related Posts:
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- How to Remove a Filter from the Admin List Table?
- Find variables available at a given hook
- How To Change The Html of Products filtration sidebar in Woocommerce?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- How to sort WooCommerce products page by latest in-stock items first?
- Variation prices breakdown only for single product page
- How do I remove an action hook inside a class that is called by another class?
- Is there a hook that I can use when a fatal error occurs?
- what is correct way to hook when update post
- How to set custom cookies before output
- Remove Woocommerce product link
- Check php version before theme activation
- Change the footer text on the login page
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- How can I hook into and edit the text of a wp_nav_menu tag?
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- Check if page parent has certain template
- Use wc_enqueue_js only on specific pages – nested add_action
- Hooking new functions to actions + passing parameters
- Woocommerce, recognize the loop of related products
- Why do filters/actions require an argument count?
- Replace existing content from specific WooCommerce admin orders list column
- Woocommerce – Hide a Column in Cart Table
- Getting my head round WordPress filter
- Delete option value from array using update_option()
- Is there a Woocommerce hook that fires when applying a coupon but before checking if it’s valid?
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- Woocommerce filter cart and category specific quantity [closed]
- How to set a custom path, for ajax image upload folder in admin?
- action hook wp_head higher priority as all other plugins/hooks
- How to use return in my custom function instead of echo
- When using the_author hook, how can I determine the PHP file that generates each call to `the_author()`?
- How to call function at the bottom of post using plugin?
- How to add a second ‘place order’ button in WooCommerce [closed]
- Setting up 2 SMTP accounts: 1 for wordpress and 1 for woocommerce
- Handling Body class based on Template
- WooCommerce Related Products by Attribute
- Remove an action hook within a Class
- How to pass arguments to add_action() or retrieve return value of called function?
- add_action shortcut?
- Is it acceptable to treat a filter like an action?
- Edit incorrect password message WordPress
- Show prices with tax in Woocommerce Mini Cart [closed]
- Reload part of checkout on changed shipping method
- Trying to build simple deposit code that hooks into woocommerce
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Add a product to checkout via form
- Trying to place a custom field after the total section in the checkout page in woocommerce
- Remove a div from RSS feed
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- Set meta field to publish date + 2 weeks
- How to add an arrow to menu items has submenus
- WordPress Gravatar filter is removing my custom attributes
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Adding widgets to my plugin page instead of WordPress dashboard
- Adding function to Genesis genesis_header [closed]
- Modify custom field input data before creating a new post
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- Should `wp_login` be used since it’s deprecated?
- Override a function defined in wp-includes/comment-template.php
- How to catch wordpress post ID when it’s published
- WordPress redirect redirecting too many times or not at all
- How to have different site identity logos on each page on Astra Theme [closed]
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- Display attribute on shop page after the title
- How to access page variable inside action hook
- Dynamically adding filters
- Woocommerce custom Plugin in wordpress [closed]
- Must filter functions receive all arguments passed to them?
- How to pass hook variable to function?
- Display custom product option in admin order details
- Filter wordpress posts without searching the keywords in the post content
- Display custom field value in woocommerce variable product via jQurey
- Use PHP Class in WordPress functions
- Adding custom field to product category and show it to shop/category shop page
- Remove span tags from WooCommerce Downloads page
- I want to hide “sold by” on certain pages with id page 43
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’
- using filter and hook inside class
- Get original value in save_post action hooka
- Discount in the specific product title using keyword ( Woocoommerce )
- Need to forward Data from WooCommerce Webhook sent to same site WordPress REST API custom endpoint
- add_filter() inside another add_filter()
- How can i style “echo apply_filters”
- Hook into all password resets in WordPress and get password before hashing?
- Add class to all meta boxes for a custom post type
- Clone the “proceed to cart” button and place it above checkout on the cart page, but only appear display size is 320px
- Woocommerce Price Text
- WordPress HTML Helper
- Cannot modify header information – headers already sent
- For each loop will not append to the_content hook
- Change Checkout “Place Order” text if cart has a specific product
- Send a custom notification to customer on WooCommerce cancelled order status
- Assign new post author IF another user in custom field on post transition
- How to change wp-admin and wp-login urls
- Woocommerce – add tracking code to another email template
- Add text below WooCommerce short description if metabox value is true