{"repo":"roots/allow-svg","free":true,"listed":false,"github":"https://github.com/roots/allow-svg","clone":"git clone https://github.com/roots/allow-svg.git","description":"A WordPress plugin that enables SVG uploads with validation to block malicious files.","language":"PHP","stars":43,"topics":["wordpress-plugin","wordpress-svg","svg","wordpress"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Allow SVG A WordPress plugin that enables SVG uploads with validation to block malicious files. WordPress still lacks native SVG support after 12+ years of discussion Support us Roots is an independent open source org, supported only by developers like you. Your sponsorship funds WP Packages and the entire Roots ecosystem, and keeps them independent. Support us by purchasing Radicle or sponsoring us on GitHub — sponsors get access to our private Discord. Features - ✅ SVG Upload Support — Enables .svg uploads in the WordPress media library - 🔒 Security-First Validation — Detects and rejects SVG files containing potentially harmful content - 🖼️ Media Library Integration — SVGs display inline like standard images - 🧩 Zero Dependencies — No external libraries or frameworks - ⚙️ Zero Configuration — No settings or admin bloat Requirements - PHP 8.2 or higher - WordPress 5.9 or higher Installation via Composer Install as a mu-plugin If you are using Bedrock, you can install this as a must-use plugin by modifying your composer.json to install the package to the mu-plugins directory. Manual 1. Download allow-svg.php 2. Place in wp-content/plugins/allow-svg/ 3. Activate via wp-admin or WP-CLI Usage Once activated, the plugin automatically: 1. Enables SVG uploads through the Media Library or block editor 2. Performs strict validation on all SVG files 3. Rejects malicious files with clear error messages 4. Accepts clean, standards-compliant SVGs as-is No configuration required. Secur","default_branch":null,"files":null,"tree":[],"storefront":"/r/roots","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/roots/allow-svg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}