Updated 02 – 05 – 18: plugins object is now returned as an array.
On a whim this May bank holiday, tucked up on the sofa watching movies, I decided to create a plugin to display my favourited plugins on WordPress.org.
After a bit of digging I found you can use the plugins_api() function and pass it a username, e.g.:
plugins_api( 'query_plugins', array( 'user' => emirpprime, 'per_page' => '-1' ) );
This returns an object with some information about the results, then an array of plugins. A stripped down example of the structure is below:
A simple loop over the
plugins array will get all the details about a plugin you could want.
A short while later, and a rough and ready version is complete – a basic plugin that registers a shortcode and returns a list of a user’s plugins.
What does the plugin output?
Here are my favourites as an example – the markup is basic but easy to style, with a couple of classes for targetting. I’ve kept it simpler than the layout in wp-admin or the plugin repository, but hopefully with enough info to be useful:
Automatically all of a nav menu item's descendants as submenu items. Designed for pages but…
Autoptimize speeds up your website by optimizing JS, CSS, images (incl. lazy-load), HTML and Google Fonts, asyncing JS, removing emoji cruft and more.
Automatic updating of the comment block list in WordPress with antispam keys from GitHub.
Check posts, pages & all content for broken links & missing images to improve SEO.…
A lightweight plugin to add thousands of taxonomy terms in one go.
Enables the previous "classic" editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports all plugins that extend this screen.
The "Classic Editor +" plugin disables the block editor, removes enqueued scripts/styles and brings back…
Simple, option-less, plugin to make TinyMCE – the WordPress Visual Editor – easier for clients…
All of Cloudflare’s performance and security benefits in a simple one-click install.
An easy, clean and simple way to run code snippets on your site.
Admin UI for creating custom post types and custom taxonomies for WordPress
Debugging tool for theme authors and reviewers.
A plugin, which helps WordPress developers develop.
Allows administrators to globally disable comments on their site. Comments can be disabled according to post type. Multisite friendly.
Disable the use of the REST API on your website to site users. Now with User Role support!
Disables the WP REST API for visitors not logged into WordPress.
WordPress migration and backups are much easier with Duplicator! Clone, back up, move and transfer an entire site from one location to another.
A lightweight plugin that protects email addresses from email-harvesting robots, by encoding them into decimal and hexadecimal entities.
Easily replace any attached image/file by simply uploading a new file in the Media Library edit view – a real time saver!
Epoch – 100% realtime chat and commenting in a tiny little package that is fully…
What do you think? Is there any other info you think would be useful to include? Let me know in the comments.