Dataeasy_svg_icon

easy_svg_icon

A registered post meta key for a post's icon, as collection/slug, readable over REST and bindable from a template.

Option · Easy SVG Pro · Status: Internal · Defined in includes/blocks/block-support.php

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

Usage

get_post_meta( $post_id, 'easy_svg_icon', true ) // 'collection/slug'

Example

update_post_meta( $post_id, 'easy_svg_icon', 'acme/phone' );

Description

Registered on init at priority 20 for every post type while the blocks feature is on: single string, default '', show_in_rest true. Values are sanitized on the way in to a valid reference or ''. Anyone who may edit the post may write it. It lets a block theme show a post's icon with no field plugin at all.