Iconseasy_svg_stored_icons()

easy_svg_stored_icons()

Returns every stored icon, oldest first, from a versioned one-day cache.

Function · Easy SVG · Status: Internal · Defined in includes/icon-manager.php

Internal: not part of the promised public surface. It may change without notice.

Usage

easy_svg_stored_icons(): array

Example

foreach ( easy_svg_stored_icons() as $icon ) {
	echo esc_html( $icon['slug'] ) . "
";
}

Description

Each entry has id, slug, label and content. On a cache miss it pages through the store with easy_svg_icon_page() and caches the list under the version read before the query, so a write during the read makes the cache stale instead of wrong.

Return value

returnarray<int, array{id:int, slug:string, label:string, content:string}>

All icons.