Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Address based contact methods

// Register User Contact Methods
function custom_user_contact_methods( $user_contact_method ) {

	$user_contact_method['address'] = __( 'Address', 'text_domain' );
	$user_contact_method['city'] = __( 'City', 'text_domain' );
	$user_contact_method['country'] = __( 'Country', 'text_domain' );
	$user_contact_method['tel'] = __( 'Tel', 'text_domain' );
	$user_contact_method['fax'] = __( 'Fax', 'text_domain' );

	return $user_contact_method; ;

}

// Hook into the 'user_contactmethods' filter
add_filter( 'user_contactmethods', 'custom_user_contact_methods' );