I have added a new custom field to checkout. Since it starts with billing_, it will be added to the user meta. Will it be automatically taken and displayed in admin orders while fetching other billing details ? In the same way will it be displayed in thank you page ? Or should i add custom code ?

add_filter( 'woocommerce_checkout_fields' , 'my_checkout_fields' );
function my_checkout_fields( $fields ) {
    $fields['billing']['billing_newnumber'] = array(
        'label'        => __( 'New Number', 'woocommerce' ),
        'required'     => false,
        'class'        => array( 'form-row' ),
        'priority'     => 120,

    return $fields;

The field is shown in both user meta and post meta. But is not displaying on an of the page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.