I'm updating a plugin for WooCommerce, and I have got a hooks.php
file in which I handle WooCommerce hooks. I added four new billing fields to checkout and I need to display them in order details; I need also to make them editable.
Here is the code in which I succeed in displaying my fields:
add_action('woocommerce_admin_order_data_after_billing_address', function($order)
echo p(strong(__('Codice Fiscale', 'fatt-24')).': <br />' . order_c_fis($order));
echo p(strong(__('Partita Iva / VAT number', 'fatt-24')).': <br />' . order_p_iva($order));
echo p(strong(__('Codice destinatario', 'fatt-24')) . ': <br />' . order_recipientcode($order));
echo p(strong(__('Indirizzo PEC', 'fatt-24')) . ': <br />' . order_pec_address($order));
}, 10, 1);
I'm not able to edit and save it.