easy_svg_panel_add_message()
Returns a translated sentence for an add or media state word.
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_add_message( string $state ): string
Example
$message = easy_svg_panel_add_message( easy_svg_add_icon( $label, $svg ) );
Description
Covers no_sanitizer, empty, not_saved, added, not_found, no_file, not_svg, bad_name, too_large and too_complex, with a catch-all for anything else.
Parameters
body
$statestring
State word.
Return value
returnstring
Message.
Related
Was this page helpful?