Iconseasy_svg_icons_supported()

easy_svg_icons_supported()

Tells whether this WordPress has the icon registry the Icon block needs.

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_icons_supported(): bool

Example

if ( easy_svg_icons_supported() ) {
	// Offer the block form.
}

Description

True when wp_register_icon() and wp_register_icon_collection() exist. Without them the post type is not registered and nothing is handed to core, but easy_svg_icon() still works.

Return value

returnbool

True with the registry.