WooCommerce Add New Address Fields

Home » WordPress Generators » WooCommerce Add New Address Fields
The label for this new field.
Required
Whether this field is required or not.
Comma-seperated list of CSS classes for this new field.
The priority of this new field.
The placeholder text for this new field.
Add to admin edit profile
Whether to add this new field to the admin edit profile page.
The description for this new field.
The options for this select field. One option per line.
                    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;
}