Answers for "add svg images to wordpress function php"

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

Browse Popular Code Answers by Language