easy-svg-pro/v1/quick-insert/remember
Moves an icon to the front of the current user's recent list.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/editor/quick-insert.php
Usage
POST /wp-json/easy-svg-pro/v1/quick-insert/remember
Example
curl -X POST "https://example.com/wp-json/easy-svg-pro/v1/quick-insert/remember" \
-H "X-WP-Nonce: $NONCE" -b "$COOKIES" \
-H "Content-Type: application/json" \
-d '{"icon": "acme/arrow"}'
Description
Called after an insert. A valid collection/slug is moved to the front and the list is cut to 12; an invalid value changes nothing but the stored list is still cleaned.
Permission: edit_posts and an active licence with Quick insert switched on.
Parameters
The icon reference, as collection/slug.
Return value
The user's state after the write, same shape as GET /quick-insert/state.
Response
The user's state after the write, same shape as GET /quick-insert/state.
{
"recent": [
"acme/arrow"
],
"favourite": [
"easy-svg/heart"
],
"can_create": true
}