Created
October 1, 2020 20:55
-
-
Save imarkdesigns/b67a48aa9a043fbc7f6fadd980fe2975 to your computer and use it in GitHub Desktop.
Allow .vcf to WordPress #wordpress
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
| /** | |
| * 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