{"id":169589,"date":"2023-01-27T21:35:13","date_gmt":"2023-01-27T21:35:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/svg-enabler\/"},"modified":"2023-02-07T17:03:27","modified_gmt":"2023-02-07T17:03:27","slug":"svg-enabler","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/svg-enabler\/","author":20873325,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"1.0.3","tested":"6.1.10","requires":"5.0","requires_php":"7.1","requires_plugins":"","header_name":"SVG Enabler","header_author":"optimisthub","header_description":"This plugin allow upload any SVG files to WordPress.","assets_banners_color":"475899","last_updated":"2023-02-07 17:03:27","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/optimisthub\/wordpress-svg-enabler","header_author_uri":"https:\/\/optimisthub.com","rating":0,"author_block_rating":0,"active_installs":30,"downloads":2835,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"Fatih Toprak","date":"2023-01-27 21:34:33"},"1.0.1":{"tag":"1.0.1","author":"Fatih Toprak","date":"2023-02-07 15:35:55"},"1.0.2":{"tag":"1.0.2","author":"Fatih Toprak","date":"2023-02-07 15:48:12"},"1.0.3":{"tag":"1.0.3","author":"Fatih Toprak","date":"2023-02-07 17:03:27"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":2861579,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2861579,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2861579,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[217661,3770,54714,217662],"plugin_category":[],"plugin_contributors":[217542,217541],"plugin_business_model":[],"class_list":["post-169589","plugin","type-plugin","status-publish","hentry","plugin_tags-allow-svg-upload","plugin_tags-svg-support","plugin_tags-svg-upload","plugin_tags-svg-upload-enabler","plugin_contributors-fatih-toprak","plugin_contributors-optimisthub","plugin_committers-optimisthub","plugin_support_reps-optimisthub"],"banners":{"banner":"https:\/\/ps.w.org\/svg-enabler\/assets\/banner-772x250.png?rev=2861579","banner_2x":"https:\/\/ps.w.org\/svg-enabler\/assets\/banner-1544x500.png?rev=2861579","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/svg-enabler\/assets\/icon.svg?rev=2861579","icon":"https:\/\/ps.w.org\/svg-enabler\/assets\/icon.svg?rev=2861579","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin gives you the ability to allow SVG uploads whilst making sure that they\u2019re sanitized to stop SVG\/XML vulnerabilities affecting your site.<\/p>\n\n<!--section=installation-->\n<h3>INSTALL \"SVG Enabler\" FROM WITHIN WORDPRESS<\/h3>\n\n<ol>\n<li>Visit the plugins page within your dashboard and select \u2018Add New\u2019;<\/li>\n<li>Search for \u2018SVG Enabler\u2019;<\/li>\n<li>Activate SVG Enabler from your Plugins page;<\/li>\n<li>Go to \u2018after activation\u2019 below.<\/li>\n<\/ol>\n\n<h3>INSTALL \"SVG Enabler\" MANUALLY<\/h3>\n\n<ol>\n<li>Upload the \u2018svg-enabler\u2019 folder to the \/wp-content\/plugins\/ directory;<\/li>\n<li>Activate the SVG Enabler through the \u2018Plugins\u2019 menu in WordPress;<\/li>\n<li>Go to \u2018after activation\u2019 below.<\/li>\n<\/ol>\n\n<h3>AFTER ACTIVATION<\/h3>\n\n<ol>\n<li>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.<\/li>\n<li>You\u2019re done!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20we%20change%20the%20allowed%20attributes%20and%20tags%3F'><h3>Can we change the allowed attributes and tags?<\/h3><\/dt>\n<dd><p>Yes, this can be done using the <code>svg_allowed_attributes<\/code> and <code>svg_allowed_tags<\/code> filters. They take one argument that must be returned.<\/p>\n\n<pre><code>    add_filter( 'optimisthub_svg_enabler_allowed_attributes', function ( $attributes ) \n    {\n        $attributes[] = 'target'; \/\/ This would allow the target=\"\" attribute.\n        return $attributes;\n\n    } );\n\n\n    add_filter( 'optimisthub_svg_enabler_allowed_tags', function ( $tags ) \n    {\n\n        $tags[] = 'use'; \/\/ This would allow the &lt;use&gt; element.\n\n        return $tags;\n    } );\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Author name issue.<\/li>\n<\/ul>\n\n<h4>1.0.2 - 1.0.1<\/h4>\n\n<ul>\n<li>Github Action<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Stable version released<\/li>\n<\/ul>","raw_excerpt":"This plugin gives you the ability to allow SVG uploads whilst making sure that they\u2019re sanitized to stop SVG\/XML vulnerabilities affecting your site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/169589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=169589"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/optimisthub"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=169589"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=169589"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=169589"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=169589"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=169589"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=169589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}