Answers for "how to allow svg upload in wordpress"

PHP
0

upload svg to wordpress

function cc_mime_types($mimes) {
 $mimes['svg'] = 'image/svg+xml';
 return $mimes;
}
add_filter('upload_mimes', 'cc_mime_types');
Posted by: Guest on December-25-2020

Code answers related to "how to allow svg upload in wordpress"

Browse Popular Code Answers by Language