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:
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:
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
$donate_link variables along with the
text-domain string – everything else is pulled dynamically from the plugin information that WordPress provides:
Once you have added (and customised) this snippet, the plugin record will now look like this: