Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

allow json uploads in Wordpress

function cc_mime_types($mimes) {
$mimes['json'] = 'application/json'; 
$mimes['svg'] = 'image/svg+xml'; 
return $mimes; 
} 

add_filter('upload_mimes', 'cc_mime_types');
Source by isotropic.co #
 
PREVIOUS NEXT
Tagged: #json #uploads #Wordpress
ADD COMMENT
Topic
Name
5+7 =