WP Manifestindependent plugin directory
manifest / media / wpx-media-allow-svg

WPX Media Allow SVG

WPX Media Allow SVG enables secure SVG and SVGZ uploads in WordPress using automatic sanitization with optional admin-only restrictions and a complete settings panel.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/talhahafeezme/wpx-media-allow-svg/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WPX Media Allow SVG enables secure SVG and SVGZ uploads in WordPress using automatic sanitization with optional admin-only restrictions and a complete settings panel.

Description

WPX Media Allow SVG is a security-focused plugin designed to safely enable SVG and SVGZ uploads inside WordPress.

Features:

  • Sanitizes SVG and SVGZ uploads by removing scripts, event handlers, and unsafe URIs.
  • Optionally restrict SVG uploads to administrators only.
  • Toggle sanitization on/off via settings.
  • Defensive re-sanitization of stored attachments.
  • Lightweight, no external composer libraries required.

Installation

  1. Upload the plugin folder to /wp-content/plugins/wpx-media-allow-svg/
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Configure options at Settings → WPX SVG Settings

Frequently Asked Questions

Does this plugin sanitize every SVG?

Yes, if sanitization is enabled the plugin sanitizes SVGs on upload.

Can I restrict uploads to admins only?

Yes — enable the "Restrict Uploads to Administrators Only" setting.

Changelog

1.0.0

Initial release.