easy-svg-pro/v1/sets/restore
Brings up to 25 trashed icon sets back, each under the status it had before.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php
Usage
POST /wp-json/easy-svg-pro/v1/sets/restore
Example
curl -u admin:app-password -H 'Content-Type: application/json' -d '{"ids":[42]}' https://example.com/wp-json/easy-svg-pro/v1/sets/restore
Description
Only ids that are a set and currently in the trash are restored; anything else is listed in missed. WordPress would otherwise restore a post as a draft, so the previous status is used instead. 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
Trashed sets to bring back, 1 to 25.
Return value
restored (ids now back), count and missed.
Response
restored (ids now back), count and missed.
{
"restored": [
42
],
"count": 1,
"missed": []
}