Enable vCard Upload

The WordPress media library is restricted to certain file types, and vCards are not one of them. Add this code to your theme’s functions.php file or core functionality plugin to allow vCard uploads.

/**
 * Enable vCard Upload 
 *
 */
function be_enable_vcard_upload( $mime_types ){
  $mime_types['vcf'] = 'text/vcard';
  return $mime_types;
}
add_filter('upload_mimes', 'be_enable_vcard_upload' );

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk