-
-
Save billerickson/ee531a3850979bec47965be0e695f926 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Enable vCard Upload | |
* | |
*/ | |
function be_enable_vcard_upload( $mime_types ){ | |
$mime_types['vcf'] = 'text/x-vcard'; | |
return $mime_types; | |
} | |
add_filter('upload_mimes', 'be_enable_vcard_upload' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment