Developer quick start
Your first result in two minutes: add an icon over REST, print it from PHP, change output with a filter, then WP-CLI, an ability and a configuration file with Easy SVG Pro.
Each step below is one command or a few lines of code, and each one tells you what you see when it worked. Steps 1 to 4 need only the free plugin Easy SVG. Steps 5 to 7 need Easy SVG Pro with an active license.
With Easy SVG
Switch on the icon library
Go to Easy SVG → Settings → General and switch on Manage icons. With WP-CLI (the wp command on your server) it is one line:
wp option update easy_svg_settings '{"svg_upload":true,"icons":true}' --format=json
What you see: Easy SVG → Icons opens the Icon library.
Add an icon over REST
A REST route is an address under /wp-json/ that answers with JSON. Create an application password under Users → Profile, then run this with your site, user name and password:
curl -X POST https://example.com/wp-json/easy-svg/v1/library/add \
-u admin:'abcd efgh ijkl mnop qrst uvwx' \
-H 'Content-Type: application/json' \
-d '{"label":"Hello","markup":"<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/></svg>"}'
What you see: JSON that ends with "added":{"id":4,"slug":"hello","wanted":"hello"}, and a circle called Hello in the Icon library. The markup went through the same sanitizer as an upload.
Print it from PHP or a shortcode
In a theme template:
<?php echo easy_svg_icon( 'hello', array( 'class' => 'my-icon' ) ); ?>
In a post, a widget or a page builder text field:
[easy_svg_icon name="easy-svg/hello" size="48px" label="Hello"]
What you see: the circle as inline SVG. The PHP call starts with <svg class="easy-svg-icon my-icon" aria-hidden="true" focusable="false". With a label the icon gets role="img" and aria-label="Hello" instead of aria-hidden, so a screen reader announces it.
Change something with a filter
A filter is a WordPress hook that hands your function a value and uses what your function returns. A mu-plugin is a PHP file in wp-content/mu-plugins/ that WordPress always loads, without activating it. Create wp-content/mu-plugins/hello-easy-svg.php:
<?php
add_filter( 'easy_svg_support_report', function ( $lines ) {
$lines['Hello'] = 'from my mu-plugin';
return $lines;
} );
What you see: under Easy SVG → Tools the support report has the line Hello: from my mu-plugin. Delete the file when you are done.
With Easy SVG Pro
Use WP-CLI
Switch on WP-CLI under Easy SVG → Settings → Features, then:
wp easy-svg icons list
What you see: one row per collection, with the columns collection, label, count, origin and problems. The icon from step 2 is counted in the collection easy-svg. While the switch is off the command stops with Error: Turn on WP-CLI on the Features screen of Easy SVG.
Run an ability
An ability is a named action with a described input and output, from the WordPress Abilities API (WordPress 6.9 or newer). Scripts can run it over REST, and AI clients can run it over MCP (Model Context Protocol). AI agents (MCP) is on by default and needs an administrator.
curl -s -u "admin:abcd efgh ijkl mnop qrst uvwx" \
"https://example.com/wp-json/wp-abilities/v1/abilities/easy-svg-pro/list-icons/run"
What you see:
{"items":[{"slug":"hello","label":"Hello","collection":"easy-svg","source":"library"}],"total":1,"page":1,"per_page":100,"has_more":false,"truncated":false}
Set features from a file
Create wp-content/easy-svg-pro.json. This is how an agency keeps the same switches on every site:
{ "features": { "cli": true, "sets": true } }
Then run:
wp easy-svg config
What you see: the file's path and a table with features.cli and features.sets, both with value true. On the Features screen both switches are locked with Fixed by configuration.
Where next
Easy SVG developer reference
Hooks, functions, the shortcode, the panel registry and what is promised to stay.
Easy SVG Pro developer reference
Abilities, REST routes, WP-CLI, configuration and collections.
Ship icons from a theme or plugin
Icon folders, a manifest.json and collections that come with your code.
Abilities for AI agents
Every ability, its permissions and how to connect an MCP client.
Your first result in 2 minutes
Three paths with copy-ready code, the output and the template behind each.