easy-svg-pro/v1/sets/delete
Moves up to 25 icon sets to the trash in one request.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php
Usage
POST /wp-json/easy-svg-pro/v1/sets/delete
Example
curl -u admin:app-password -H 'Content-Type: application/json' -d '{"ids":[42,43]}' https://example.com/wp-json/easy-svg-pro/v1/sets/delete
Description
Each id is checked to be an easy_svg_set post first, so a page id sent by mistake is reported in missed and never trashed. Sets go to the trash, not away for good, and can be brought back with /sets/restore. More than 25 ids answer 400 easy_svg_pro_too_many_sets. Permission: Requires manage_options, an active licence and the editor feature (Icon set editor) switched on.
Permission: Requires manage_options, an active licence and the editor feature (Icon set editor) switched on.
Parameters
The sets to move to the trash, 1 to 25.
Return value
trashed (ids now in the trash), count and missed (ids that were not a set or could not be trashed).
Response
trashed (ids now in the trash), count and missed (ids that were not a set or could not be trashed).
{
"trashed": [
42,
43
],
"count": 2,
"missed": [
7
]
}