Only allow 1 Image to be uploaded at a time

I need to disable multiple uploads at a time. I am using wp.media.frames on the front end of the site, and cannot use upload_prefilter since it would need to check a post for total uploads – which is not what I want. I need to limit total uploads so that a user does not upload multiple images that are not used but are still stored on the server.

Read more here:: Only allow 1 Image to be uploaded at a time

Leave a Reply

Your email address will not be published. Required fields are marked *