Iconseasy_svg_icon_args()

easy_svg_icon_args()

Builds the argument array wp_register_icon() accepts: label and content only.

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_args( string $label, string $content ): array

Example

wp_register_icon( 'easy-svg/heart', easy_svg_icon_args( 'Heart', $svg ) );

Description

Core refuses any other key through _doing_it_wrong, and on production the icon then silently does not exist.

Parameters

Return value

returnarray

label and content.