wp-svg-icon-api

Installation
SKILL.md

WordPress SVG Icon API

WordPress 7.1 provides public collection, registration, discovery, and rendering helpers for SVG icons. Use them instead of duplicating inline SVG strings across screens or inventing a second icon registry.

Register a collection before its icons

Register during init. Use a plugin-owned collection; core is reserved:

add_action( 'init', static function (): void {
    wp_register_icon_collection(
        'myplugin',
        array(
            'label'       => __( 'My Plugin', 'myplugin' ),
            'description' => __( 'Icons supplied by My Plugin.', 'myplugin' ),
        )
    );
Installs
1
GitHub Stars
22
First Seen
1 day ago
wp-svg-icon-api — lonsdale201/wp-agent-skills