How to Restrict Uploads to Specified File Types Only in WordPress

122

Few days ago while working on a client’s site, we were asked to code a function that restrict uploads to specified file types only (jpg, gif, png). After looking around the repository and finding nothing that can do this, we decided to create a plugin of our own. Yesterday, it was approved in the WordPress plugin repository and it is called Restrict Uploads.

Unlike other plugins, this plugin does NOT have a super complex settings panel. As a matter of fact, it doesn’t have any settings panel at all. It is built to do one thing and one thing only. That is to keep your editors from uploading any other file type aside from images (jpg, gif, png). Plugins like these are the ideal type because it works silently in the background having no impact on your site’s load time, or your day to day activity.

All you have to do is simply install and activate the plugin. Download Restrict Uploads Now.