add_filter('woocommerce_default_address_fields', 'add_custom_default_address_field');
function add_custom_default_address_field( $fields ) {
$fields['wpturbo-my-field'] = array(
'class' => array('wpturbo-my-field'),
'type' => 'text',
);
return $fields;
}
add_filter('woocommerce_customer_meta_fields', 'add_address_field_to_admin_profile_page');
function add_address_field_to_admin_profile_page( $admin_fields ) {
$admin_fields['billing']['fields']['billing_wpturbo-my-field'] = array(
'label' => '',
'description' => '',
);
return $admin_fields;
}