Skip to content

Adds a custom endpoint that allows authenticated users to add SVG's to WordPress' Media Library by posting SVG markup.

Notifications You must be signed in to change notification settings

41C/wp-rest-api-svg-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

WP REST API SVG Creator

Adds a custom endpoint that allows authenticated users to add SVG's to WordPress' Media Library by posting SVG markup.

Endpoint

POST /wp-json/svg/v1/media

Usage

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

About

Adds a custom endpoint that allows authenticated users to add SVG's to WordPress' Media Library by posting SVG markup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages