Created
September 20, 2019 12:46
-
-
Save JeffMatsonPagely/352c041dda4d15206b50e30f892385cf to your computer and use it in GitHub Desktop.
Allow VCard File Uploads 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 | |
add_filter( 'upload_mimes', 'allow_vcard_uploads' ); | |
function allow_vcard_uploads( $mime_types ) { | |
$mime_types['vcf'] = 'text/x-vcard'; | |
$mime_types['vcard'] = 'text/x-vcard'; | |
return $mime_types; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment