PHPackages                             digimix/wp-svg-upload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. digimix/wp-svg-upload

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

digimix/wp-svg-upload
=====================

Adds full SVG media support to WordPress.

v1.0.2(10y ago)33831[1 PRs](https://github.com/digimix/wp-svg-upload/pulls)MITPHPPHP &gt;=5.4.0

Since May 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/digimix/wp-svg-upload)[ Packagist](https://packagist.org/packages/digimix/wp-svg-upload)[ Docs](https://roots.io/plugins/soil/)[ RSS](/packages/digimix-wp-svg-upload/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (3)Used By (0)Security (1)

Installation Instructions
-------------------------

[](#installation-instructions)

Install with Composer `composer require digimix/wp-svg-upload`

Install manually

1. Clone or copy the files into your WordPress plugins directory
2. Activate the plugin from the dashboard or using WP CLI

Once the plugin is activated, you're good to go. Your WordPress media library will support uploading SVG files.

\##Logic Breakdown

- 1. We need the whole page, but only if we are in the backend (hence admin\_init hook)
- 2. We would like to grab all output (ob\_start within admin\_init as nothing should echo before that, we should not interfere with things that do)
- 3. We want to grab the content on shutdown, concatenate all output buffers, then filter
- 4. Search for placeholders which should exist and replace the text
- Downsides
- 1. Not permanent fix (for perma fix WP core would need to be editable or native filtering added)
- 2. A bit resource munchy (it's locked to the admin side, so IMHO who cares)
- 3. This is just to get SVG into WP core... Luckily the find replace is that simple in /wp-includes/media-template.php (Patch it Mullweng &amp; Co!)

---

Changes...
----------

[](#changes)

- Re-factored function declaration and calls to make compatible with lesser PHP versions, despite believing anyone using such versions is dangerous
- Added param for mime-types to filter\_mimes function
- Moved into a namespace and class to make the whole thing less hack-and-slash
- Updated to use short-array syntax (Breaking change update your PHP or don't use)
- Deleted some dead code I never noticed before

Credits
-------

[](#credits)

- Originally forked from ,
- Maintained by the [WordPress Developer](https://digimix.co) Team at Digimix Studios

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3686d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1556591?v=4)[Digimix](/maintainers/digimix)[@digimix](https://github.com/digimix)

---

Tags

wordpress

### Embed Badge

![Health badge](/badges/digimix-wp-svg-upload/health.svg)

```
[![Health](https://phpackages.com/badges/digimix-wp-svg-upload/health.svg)](https://phpackages.com/packages/digimix-wp-svg-upload)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k456.5k2](/packages/roots-bedrock)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

374458.3k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.3k](/packages/vinkla-wordplate)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
