Created
July 9, 2019 20:13
-
-
Save amsgator/7afdaff9f9c153f0c81e915d5cd0889a to your computer and use it in GitHub Desktop.
Enable vCard Upload in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function enable_vcard_upload( $mime_types ){ | |
$mime_types['vcf'] = 'text/vcard'; | |
$mime_types['vcard'] = 'text/vcard'; | |
return $mime_types; | |
} | |
add_filter('upload_mimes', 'enable_vcard_upload' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment