Summary
Display saved snippet IDs in the editor and expand the available snippet export options.
Current behavior
- A saved snippet's ID is present in the editor URL, but is not displayed in the editor interface.
- The All Snippets view can export selected active and inactive snippets.
- The Trash view only offers Restore and Delete Permanently, so a trashed snippet must be restored before it can be exported.
- There is no Export All Snippets option that includes active, inactive and trashed snippets together.
Proposed changes
- Display the numeric snippet ID within the editor for saved snippets.
- Add an Export action for selected snippets in the Trash view.
- Add an Export All Snippets option that includes active, inactive and trashed snippets in one export.
Permanently deleted snippets are outside the scope because their database records no longer exist.
Acceptance criteria
- The editor displays the ID for an existing snippet without relying on the URL.
- Users can export one or more snippets directly from Trash without restoring them first.
- Export All Snippets includes active, inactive and trashed snippets.
- Exporting does not restore, activate, deactivate or otherwise modify a snippet.
- Existing export formats remain import-compatible.
- Existing capability, nonce and multisite/network checks remain enforced.
User request
https://wordpress.org/support/topic/add-inside-snippets-export-deleted/
Summary
Display saved snippet IDs in the editor and expand the available snippet export options.
Current behavior
Proposed changes
Permanently deleted snippets are outside the scope because their database records no longer exist.
Acceptance criteria
User request
https://wordpress.org/support/topic/add-inside-snippets-export-deleted/