Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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