Iconseasy_svg_icon_label()

easy_svg_icon_label()

Returns a readable label for an icon: its stored title, else its slug as words.

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_label( string $slug, string $collection = 'easy-svg' ): string

Example

$label = easy_svg_icon_label( 'arrow-right' );

Description

For other collections, or an icon without a title, hyphens and underscores become spaces and the first letter is upper case, so arrow-right reads Arrow right.

Parameters

body
$slugstring

Icon slug.

Return value

returnstring

The label.