Answers for "allow svg upload wordpress function.php"

0

Wordpress SVG Manually - function.php

// Enable SVG support
function add_mime_types($mimes) {
	$mimes['svg'] = 'image/svg+xml';
	return $mimes;
}
add_filter('upload_mimes', 'add_mime_types');
Posted by: Guest on July-21-2021
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 "allow svg upload wordpress function.php"

Browse Popular Code Answers by Language