Support » Plugin: Safe SVG » SVGO function

  • Resolved BruceCo


    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 Author Daryll Doyle


    Hi @bruce81,

    The SVGO optimisation only happens on the Pro version of this plugin, available from

    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.


Viewing 1 replies (of 1 total)
  • The topic ‘SVGO function’ is closed to new replies.