Data_easy_svg_set_icons

_easy_svg_set_icons

Post meta on an icon set: a JSON object of icon slug = label and sanitized, hardened markup.

Option · Easy SVG Pro · Status: Internal · Defined in includes/editor/sets.php

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

Usage

get_post_meta( $set_id, '_easy_svg_set_icons', true ) // JSON string

Example

$icons = json_decode( (string) get_post_meta( $set_id, '_easy_svg_set_icons', true ), true );
foreach ( (array) $icons as $slug => $icon ) {
	echo esc_html( $icon['label'] );
}

Description

Written only through write_set_icons(), which takes the set lock and fires easy_svg_pro_set_icons_written. Decode it with json_decode( $raw, true ). Icons are addressed as {collection slug}/{icon slug}.

Read only. Writing it directly skips the sanitizer and hardener.