Created
October 5, 2015 13:47
-
-
Save brunopulis/b9540d392a1e2e31ca32 to your computer and use it in GitHub Desktop.
Adding in file functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('upload_mimes', 'custom_upload_mimes'); | |
function custom_upload_mimes ( $existing_mimes=array() ) { | |
// add the file extension to the array | |
$existing_mimes['svg'] = 'mime/type'; | |
// call the modified list of extensions | |
return $existing_mimes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment