Last active
February 13, 2016 19:45
-
-
Save twentyfortysix/5c7112f5bab98beeaa8b to your computer and use it in GitHub Desktop.
WP - disable png and other big files to upload
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
/** prevent uploading of .bmp files. */ | |
add_filter('upload_mimes', function(array $mimes) | |
{ | |
unset($mimes['bmp']); | |
unset($mimes['png']); | |
return $mimes; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment