Cette page est également disponible en Français Français

If you are a plugins developer, you may want to add some additional links (eg: donate link) to your plugins row in the plugins list page.

Add custom meta link on plugin list page

Here is a simple function which show you how to do that :

 

This filter is triggered for each plugin on the plugins page, so you have to make a test before inserting your custom links in the meta array. If we don’t, we’ll overload all the plugin custom meta… what’s not fair for other developers. The condition is based on the declaration file of your plugin. It will simply test whether the file called by the loop used to build the list of plugins is the PHP file in which we declared the informations of our plugin. So you have to edit this line:

 

Please note that the string Donate to this plugin » is already translated by WordPress itself, so no need to add you own texdomain.

Brice Capobianco

WordPress addict and self-taught. I love to learn and to create, then to share…
Founder of b-website.com