REST APIeasy-svg-pro/v1/sets/trash

easy-svg-pro/v1/sets/trash

Lists the icon sets in the trash, newest first.

REST endpoint, Easy SVG Pro, Status: Public, defined in includes/core/rest/sets.php

Usage

GET /wp-json/easy-svg-pro/v1/sets/trash

Example

curl -u admin:app-password https://example.com/wp-json/easy-svg-pro/v1/sets/trash

Description

The trash of icon sets as a list, the most recently trashed first. The Icons page reads it; WordPress's own trash screen for sets is not linked anywhere. At most 500 sets are listed; total counts all of them.

Permission: permission_callback is rest_permission(): manage_options, an active license, the free plugin's icon library and the Collections feature (sets) switched on under Settings, Features.

Return value

returnWP_REST_Response

sets, one row per trashed set with id, title, count (icons) and trashed (Unix time), and total.

Response

{
  "sets": [
    { "id": 42, "title": "Brand", "count": 48, "trashed": 1762250000 }
  ],
  "total": 1
}