Allow uploading VCF to wordpress

PHOTO EMBED

Thu May 13 2021 21:59:34 GMT+0000 (Coordinated Universal Time)

Saved by @Alz #php #wordpress

//add allowable file types to wordpress media uploader
function custom_mime_types( $mimes ){
	$mimes['vcf'] = 'text/vcard'; //allowing .cvf filetypes
//additional filetypes can go here
	return $mimes;
}
add_filter( 'upload_mimes', 'custom_mime_types' );
content_copyCOPY

https://www.clevelandwebdeveloper.com/code-snippets/wordpress-add-allowed-file-types/