sandywp / plugins / easy-svg

Easy SVG Support

5.0 out of 5 stars. 5.0 6 reviews

This Plugin allows you to upload SVG Files into your Media library.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v4.1 40,000+ installs WP 6.0+ PHP 8.0+

your-sandbox.sandywp.com/wp-admin
Easy SVG Support running inside a SandyWP sandbox

What you get inside

3 screens
  • Easy SVG Support in Gutenberg

  • Upload direct into your WordPress Media

About this plugin

Direct Upload SVG Files into WordPress

EASY SVG Support is a Plugin which allows you to upload SVG Files into your Media library. This plugin was created for persons, who don’t need much options for SVG.

Features of the plugin include:

  • Uploading SVG Support for WordPress
  • Easy installation
  • Display SVG Files in the Media Libary
  • SVG Sanitize Files direcly
  • SVG Sanitize – Custom Hooks for Tags and Attributes
  • Updated for the new WordPress Gutenberg Editor
  • Support for PHP 8.2

Documentation & Support

Got a problem or need help with Easy SVG Support? Than you can write me an e-mail:

[email protected] or you can ask your question in the forums section.

Questions

SVG Sanitize – Allow Tags & Attributes Hooks

Hook: esw_svg_allowed_tags

    // XML TAGS
    add_filter( 'esw_svg_allowed_tags', function ($tags) {
        $tags[] = 'p';
        $tags[] = 'info';

        return $tags;
    } );

Hook: esw_svg_allowed_attributes

    // XML attributes
    add_filter( 'esw_svg_allowed_attributes', function ( $attributes ) {
        $attributes[] = 'src';

        return $attributes;
    } );

Do you need a Source Code?

Please check out my repository on Github:

GitHub Repository

5.0

6 reviews

  • 5 ★ 6
  • 4 ★ 0
  • 3 ★ 0
  • 2 ★ 0
  • 1 ★ 0

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.