Iconseasy_svg_icon_name()

easy_svg_icon_name()

Returns easy-svg/slug for a valid slug, or an empty string.

Function · Easy SVG · Status: Internal · Defined in includes/icons.php

Internal: not part of the promised public surface. It may change without notice.

Usage

easy_svg_icon_name( string $slug ): string

Example

$name = easy_svg_icon_name( 'heart' ); // easy-svg/heart

Description

The namespaced name core's icon registry wants.

Parameters

body
$slugstring

Unqualified slug.

Return value

returnstring

collection/name or an empty string.