Title: SVGO function
Last modified: August 14, 2019

---

# SVGO function

 *  Resolved [BruceCo](https://wordpress.org/support/users/bruce81/)
 * (@bruce81)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/svgo-function/)
 * Do you able to explain how function of the SVG optimization (SVGO) works ? I 
   have find this option in description list, but do not understand how to use it.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Daryll Doyle](https://wordpress.org/support/users/enshrined/)
 * (@enshrined)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/svgo-function/#post-11831833)
 * Hi [@bruce81](https://wordpress.org/support/users/bruce81/),
 * The SVGO optimisation only happens on the Pro version of this plugin, available
   from [https://wpsvg.com](https://wpsvg.com).
 * It works by hooking into the upload filter and running the SVG through and SVGO
   server after sanitisation. There’s nothing to do to get it working as it happens
   automatically on upload. Again, this is just the Pro version though.
 * If you wanted to implement something like this yourself, I would suggest looking
   at hooking into the `wp_handle_upload_prefilter` filter with a priority of 11
   + as this way you’ll know it’s after sanitisation.
 * Regards,
    Daryll

Viewing 1 replies (of 1 total)

The topic ‘SVGO function’ is closed to new replies.

 * ![](https://ps.w.org/safe-svg/assets/icon.svg?rev=2779013)
 * [Safe SVG](https://wordpress.org/plugins/safe-svg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/safe-svg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/safe-svg/)
 * [Active Topics](https://wordpress.org/support/plugin/safe-svg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/safe-svg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/safe-svg/reviews/)

## Tags

 * [svg](https://wordpress.org/support/topic-tag/svg/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daryll Doyle](https://wordpress.org/support/users/enshrined/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/svgo-function/#post-11831833)
 * Status: resolved