Support » Fixing WordPress » Allow Upload .vcf in WordPress 5.0.3

  • PaulCityhopper

    (@paulcityhopper)


    How can I allow to upload .vcf?
    I Already tried something like…

    function be_enable_vcard_upload( $mime_types ){
    	$mime_types['vcf'] = 'text/x-vcard';
    	return $mime_types;
    }
    add_filter('upload_mimes', 'be_enable_vcard_upload' );

    But this doesnet work.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.