Last active
October 29, 2025 11:30
-
-
Save dannyvankooten/265327a6c3c5cb48cda8d236341c28dc to your computer and use it in GitHub Desktop.
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
| window.fetch('https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&per_page=500&search=forms').then(r => r.json()).then(d => { | |
| let sortedPlugins = d.plugins.sort((a, b) => a.downloaded < b.downloaded); | |
| console.log("plugins", sortedPlugins); | |
| console.log(sortedPlugins.map(p => `${p.name} (${p.slug}): ${Math.round(p.downloaded/1000)}K downloads`).join("\n")); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment