Why are some checkout hooks not working in WooCommerce?
I'm using the following code to save the value of a hidden input field having as attribute name "custom_form_data": add_action('woocommerce_checkout_update_order_meta', 'save_custom_form_data_to_order'); function save_custom_form_data_to_order($order_id) { if (isset($_POST['custom_form_data'])) { $custom_form_data = sanitize_text_field($_POST['custom_form_data']); update_post_meta($order_id, 'custom_form_data', $custom_form_data); } } But the submitted value is…