Skip to content

Instantly share code, notes, and snippets.

@crondeau
Created April 21, 2014 22:53
Show Gist options
  • Save crondeau/11159307 to your computer and use it in GitHub Desktop.
Save crondeau/11159307 to your computer and use it in GitHub Desktop.
Allow VCard upload via filter
add_filter('upload_mimes', 'blm_custom_upload_mimes');
function blm_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