Adds a custom endpoint that allows authenticated users to add SVG's to WordPress' Media Library by posting SVG markup.
POST /wp-json/svg/v1/media
Args | Description |
---|---|
markup | The SVG markup (required) |
title | Used to build the SVG filename |
alt | The alt text for the image in the WordPress Media Library |