Few days in the past whereas engaged on a consumer’s web site, we had been requested to code a perform that prohibit uploads to specified file varieties solely (jpg, gif, png). After trying across the repository and discovering nothing that may do that, we determined to create a plugin of our personal. Yesterday, it was authorized within the WordPress plugin repository and it’s referred to as Limit Uploads.
Not like different plugins, this plugin does NOT have an excellent advanced settings panel. As a matter of truth, it doesn’t have any settings panel in any respect. It’s constructed to do one factor and one factor solely. That’s to maintain your editors from importing every other file kind apart from photographs (jpg, gif, png). Plugins like these are the perfect kind as a result of it really works silently within the background having no affect in your web site’s load time, or your each day exercise.