Here is a useful snippet submitted by SHelfinger.EU.
When you activate a plugin in WordPress the author can place links in the plugin dashboard screen to show the users of the plugin links back to the plugin homepage, support page, FAQs or a way to contact the creator of the plugin.
By default WordPress will add the name of the author and a link back to the plugin homepage.
Using this snippet you can add extra links to this section like the image below from the Antivirus WordPress plugin.
All you have to do is add the following in your plugin file and it will create new links for plugin.
1 |
<br /> add_filter(‘plugin_row_meta’, ‘Register_Plugins_Links’, 10, 2);<br /> function Register_Plugins_Links ($links, $file) {<br /> $base = plugin_basename(__FILE__);<br /> if ($file == $base) {<br /> $links[] = ‘‘ . __(‘Settings’) . ‘‘;<br /> $links[] = ‘‘ . __(‘FAQ’) . ‘‘;<br /> $links[] = ‘‘ . __(‘Support’) . ‘‘;<br /> $links[] = ‘‘ . __(‘Google Plus Page’) . ‘‘;<br /> }<br /> return $links;<br /> }<br /> |