easy_svg_icon_shortcode()
The callback behind [easy_svg_icon]; passes name, class and label to easy_svg_icon().
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_shortcode( array|string $atts ): string
Example
echo easy_svg_icon_shortcode( array( 'name' => 'heart' ) );
Description
Empty strings are dropped, a missing name returns an empty string, and a string $atts (no attributes) is treated as none.
Parameters
body
$attsarray|string
Shortcode attributes.
Return value
returnstring
SVG markup or an empty string.
Related
Was this page helpful?