Title: SVG Enabler
Author: Optimist Hub
Published: <strong>January 27, 2023</strong>
Last modified: February 7, 2023

---

Search plugins

![](https://ps.w.org/svg-enabler/assets/banner-772x250.png?rev=2861579)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/svg-enabler/assets/icon.svg?rev=2861579)

# SVG Enabler

 By [Optimist Hub](https://profiles.wordpress.org/optimisthub/)

[Download](https://downloads.wordpress.org/plugin/svg-enabler.1.0.3.zip)

 * [Details](https://wordpress.org/plugins/svg-enabler/#description)
 * [Reviews](https://wordpress.org/plugins/svg-enabler/#reviews)
 *  [Installation](https://wordpress.org/plugins/svg-enabler/#installation)
 * [Development](https://wordpress.org/plugins/svg-enabler/#developers)

 [Support](https://wordpress.org/support/plugin/svg-enabler/)

## Description

This plugin gives you the ability to allow SVG uploads whilst making sure that they’re
sanitized to stop SVG/XML vulnerabilities affecting your site.

## Installation

### INSTALL “SVG Enabler” FROM WITHIN WORDPRESS

 1. Visit the plugins page within your dashboard and select ‘Add New’;
 2. Search for ‘SVG Enabler’;
 3. Activate SVG Enabler from your Plugins page;
 4. Go to ‘after activation’ below.

### INSTALL “SVG Enabler” MANUALLY

 1. Upload the ‘svg-enabler’ folder to the /wp-content/plugins/ directory;
 2. Activate the SVG Enabler through the ‘Plugins’ menu in WordPress;
 3. Go to ‘after activation’ below.

### AFTER ACTIVATION

 1. SVG Enabler is a ‘set and forget’ plugin. There are no settings fields as your 
    site’s scheduled posts will be automatically checked when the plugin is installed
    and activated.
 2. You’re done!

## FAQ

### Can we change the allowed attributes and tags?

Yes, this can be done using the `svg_allowed_attributes` and `svg_allowed_tags` 
filters. They take one argument that must be returned.

    ```
        add_filter( 'optimisthub_svg_enabler_allowed_attributes', function ( $attributes ) 
        {
            $attributes[] = 'target'; // This would allow the target="" attribute.
            return $attributes;

        } );


        add_filter( 'optimisthub_svg_enabler_allowed_tags', function ( $tags ) 
        {

            $tags[] = 'use'; // This would allow the <use> element.

            return $tags;
        } );
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“SVG Enabler” is open source software. The following people have contributed to 
this plugin.

Contributors

 *   [ Optimist Hub ](https://profiles.wordpress.org/optimisthub/)
 *   [ Fatih Toprak ](https://profiles.wordpress.org/fatih-toprak/)

[Translate “SVG Enabler” into your language.](https://translate.wordpress.org/projects/wp-plugins/svg-enabler)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/svg-enabler/), check
out the [SVN repository](https://plugins.svn.wordpress.org/svg-enabler/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/svg-enabler/) by
[RSS](https://plugins.trac.wordpress.org/log/svg-enabler/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * Author name issue.

#### 1.0.2 – 1.0.1

 * Github Action

#### 1.0.0

 * Stable version released

## Meta

 *  Version **1.0.3**
 *  Last updated **3 years ago**
 *  Active installations **30+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.1.10**
 *  PHP version ** 7.1 or higher **
 * Tags
 * [svg support](https://wordpress.org/plugins/tags/svg-support/)[svg upload](https://wordpress.org/plugins/tags/svg-upload/)
 *  [Advanced View](https://wordpress.org/plugins/svg-enabler/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/svg-enabler/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/svg-enabler/reviews/)

## Contributors

 *   [ Optimist Hub ](https://profiles.wordpress.org/optimisthub/)
 *   [ Fatih Toprak ](https://profiles.wordpress.org/fatih-toprak/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/svg-enabler/)