Hugh Lashbrooke

Product manager by day, tabletop game designer by night.

Build user appreciation links into your plugin

, ,

The other day I posted about showing plugin developers appreciation and how it’s actually really easy to do. The problem, as was pointed out to me, is that writing reviews, donations, etc. are all only accessible from the plugin page on the repo and there’s no quick way to get there from the WordPress dashboard.

All is not lost, however! It is possible to add custom links to the plugin list table alongside the default links that point to the author’s website and the plugin details page. By default those links will look something like this:

We're looking to the right of the version number.
We’re looking to the right of the version number.

That’s all well and good, but there’s a simple filter that allows you to add any additional links (or markup) to that section that you wish: plugin_row_meta.

So, in light of my previous post, I thought it would be handy to provide a snippet that allows you to easily add these links into your plugin. This snippet will work for any plugin that is hosted on the official plugin repo. The only items that you will need to change are the $plugin_slug and $donate_link variables along with the text-domain string – everything else is pulled dynamically from the plugin information that WordPress provides:


View this gist on GitHub

Once you have added (and customised) this snippet, the plugin record will now look like this:

We’re still looking to the right of the version number.
We’re still looking to the right of the version number. Nifty.

Leave a Reply

Your email address will not be published. Required fields are marked *