easy_svg_panel_media_add()
Stores one media library SVG as an icon and returns the add result.
Function · Easy SVG · Status: Internal · Defined in includes/panel.php
Internal: not part of the promised public surface. It may change without notice.
Usage
easy_svg_panel_media_add( int $id ): array
Example
$result = easy_svg_panel_media_add( $attachment_id );
Description
not_found for a missing post, not_svg for another MIME type, no_file when the file is not readable locally; otherwise easy_svg_add_icon_result() with the attachment title as label.
Parameters
body
$idint
Attachment id.
Return value
returnarray
state, plus id, slug, wanted when added.
Related
Was this page helpful?