Created
April 14, 2026 00:15
-
-
Save avioli/3018d937ad358b6954cc55d94aa0d1e0 to your computer and use it in GitHub Desktop.
A helper snippet to copy WordPress admin list entries as JSON
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| copy( | |
| Array.from($$(".column-title")).map((el) => ({ | |
| title: el.querySelector(".row-title")?.textContent, | |
| link: el.querySelector(".view a")?.href, | |
| author: el.parentElement.querySelector(".column-author a")?.textContent, | |
| status: el.querySelector("._status")?.textContent, | |
| date: el.parentElement | |
| .querySelector(".column-date") | |
| ?.innerHTML.split("<br>")[1], | |
| })), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment