Display product ACF value in Woocommerce admin email notifications
问题 Trying to get an advanced custom field in a woocommerce product to pass to the new order email for the admin. It's only there for the admin reference and is specific to each product. I have tried and this gets it to the backend but not in the email. add_action( 'woocommerce_before_order_itemmeta', 'product_size', 10, 3 ); function product_size( $item_id, $item, $product ){ // Only in backend Edit single Order pages if( current_user_can('edit_shop_orders') ): // The product ID $product_id =