Created
November 25, 2019 17:25
-
-
Save bishless/2a324f90f4ec8729daa3a36435bf6b8b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Add vcard to upload-safe files | |
*/ | |
add_filter('upload_mimes', 'custom_upload_mimes'); | |
function custom_upload_mimes ( $existing_mimes=array() ) { | |
$existing_mimes['vcard'] = 'text/vcard'; | |
$existing_mimes['vcf'] = 'text/vcard'; | |
return $existing_mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment