Skip to content

Instantly share code, notes, and snippets.

@rickalee
Created January 23, 2014 22:01
Show Gist options
  • Save rickalee/8587678 to your computer and use it in GitHub Desktop.
Save rickalee/8587678 to your computer and use it in GitHub Desktop.
VCF Support with WordPress/Cloud Sites
## Add to .htaccess
AddType application/octet-stream vcf
## Add to functions.php in active theme
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes=array() ) {
// add your extension to the array
$existing_mimes['vcf'] = 'text/x-vcard';
return $existing_mimes;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment