How To: Add and Remove Allowed File Types in WordPress

Recently I had a client request that we block BMP files from being an allowed file type for uploads in WordPress. As always WordPress provides a very simple way to set what file extensions are allowed to be uploaded. To do this we’ll use the upload_mimes action filter. Add the below code example to your […]