Disallow Video Mime Types
Overview
Disallow common video file types from WordPress media uploads.
The snippet removes MIME mappings for mp4, mov, webm, avi, mkv, wmv, and m4v through the upload_mimes filter. Use it when video files should live in a dedicated video host or storage workflow instead of the Media Library.
Variants
- Procedural
- OOP