easy-svg-pro/v1/audit/sources/scan
Scans every place an icon is stored, stores the report and returns it.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php
Usage
POST /wp-json/easy-svg-pro/v1/audit/sources/scan
Example
curl -u admin:app-password -X POST https://example.com/wp-json/easy-svg-pro/v1/audit/sources/scan
Description
Reads the free icon library, every icon set and every registered icon folder in one call, up to 5000 items, and sets truncated past that. Folder files that are links, not regular files or too large are skipped. Nothing is changed. 409 easy_svg_pro_no_sanitizer when the free plugin is inactive. Permission: Requires manage_options, an active licence and the audit feature (SVG cleaner) switched on.
Permission: Requires manage_options, an active licence and the audit feature (SVG cleaner) switched on.
Return value
The new report: at, scanned, found, unreadable, truncated and rows.
Response
The new report: at, scanned, found, unreadable, truncated and rows.
{
"at": 1792800000,
"scanned": 300,
"found": 0,
"unreadable": 0,
"truncated": false,
"rows": {}
}