Created
July 11, 2019 16:28
-
-
Save meetawahab/4fc776e081dc51924fd6e30d040b91f7 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Enable svg mime type support. | |
* @param $mimes | |
* @return $mimes | |
*/ | |
function loginpress_mime_types( $mimes ) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'loginpress_mime_types'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment