easy-svg/v1/support/report
Returns the support report from the Tools page as text, scrubbed of keys, email addresses and paths.
REST endpoint, Easy SVG, Status: Public, defined in includes/panel.php
Usage
GET /wp-json/easy-svg/v1/support/report
Example
curl https://example.com/wp-json/easy-svg/v1/support/report \
-H 'X-WP-Nonce: <nonce>'
Description
Builds the lines with easy_svg_support_lines(): Site, WordPress, PHP, Easy SVG (version from the plugin header), Theme, SVG uploads and Icon manager. Add-ons add lines through the easy_svg_support_report filter, Easy SVG Pro its own among them. Every line then goes through easy_svg_support_scrub(): lines whose label reads like a key, token, password or email, and values that look like a secret, are dropped, and the WP_CONTENT_DIR and ABSPATH paths become [content] and [site]. easy_svg_support_text() joins the lines as Label: value, one per line. The SVG uploads and Icon manager lines come from easy_svg_settings(), as the plugin acts on them, so SVG uploads always says on. The route takes no arguments.
Permission: administrators only. Every easy-svg/v1 route checks easy_svg_panel_rest_permission(), that is current_user_can( 'manage_options' ). Without a login WordPress answers 401 rest_forbidden; logged in without manage_options (an editor, say) it answers 403 rest_forbidden.
Response
An object with one key, text.
{
"text": "Site: https://example.com
WordPress: 6.8
PHP: 8.2.12
Easy SVG: 5.0
Theme: Twenty Twenty-Five 1.2
SVG uploads: on
Icon manager: on"
}