easy_svg_icon_markup()
Returns the raw stored markup for one icon, after the easy_svg_icon_markup filter.
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_markup( string $slug, string $collection = 'easy-svg' ): string
Example
$markup = easy_svg_icon_markup( 'heart' );
Description
Looks up the esw_icon post by slug for the easy-svg collection; any other collection starts empty and relies on the filter. No accessibility attributes are added, unlike easy_svg_icon().
Parameters
body
$slugstring
Icon slug.
body
$collectionstring
Collection, default easy-svg.
Return value
returnstring
Markup or an empty string.
Related
Was this page helpful?