Skip to content

Instantly share code, notes, and snippets.

Kish kish-ryan

Block or report user

Report or block kish-ryan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
benfrain / allowSVG.php
Created Mar 8, 2014
Allow SVG upload and preview to Media area of Wordpress (add this to functions.php)
View allowSVG.php
function custom_mtypes( $m ){
$m['svg'] = 'image/svg+xml';
$m['svgz'] = 'image/svg+xml';
return $m;
add_filter( 'upload_mimes', 'custom_mtypes' );
You can’t perform that action at this time.