easy_svg_site_has_svgs()
Tells whether the media library holds at least one SVG attachment.
Function · Easy SVG · Status: Internal · Defined in includes/settings.php
Internal: not part of the promised public surface. It may change without notice.
Usage
easy_svg_site_has_svgs(): bool
Example
$has = easy_svg_site_has_svgs();
Description
One get_posts() query for a single attachment id with mime type image/svg+xml and status inherit.
Return value
returnbool
True when one exists.
Related
Was this page helpful?