Allow Additional Upload File Types
Extends the WordPress MIME allowlist to accept SVG, WebP, AVIF, and XML files, and fixes the upload security check so SVGs pass validation.
PHPProby SnipCraft
This is a Pro snippet
The full code for “Allow Additional Upload File Types” is part of the SnipCraft Pro library. Get every Pro snippet and module, and import them in one click.
Get SnipCraft ProQuestions about Pro? Contact us.
#files#media#mime-types#svg#uploads