<?php
define( 'PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
/**
* Add any link to your plugin description row in wordpress plugin admin page.
*
*/
add_filter('plugin_row_meta', 'RegisterPluginLink',10, 4 );
function RegisterPluginLink($links, $plugin_file){
if ( PLUGIN_BASENAME == $plugin_file ){
//you logic here
$links[] = '<a target="_blank" href="https//www.google.com/">Go to Google :)</a>';
}
return $links;
}
?>
code snippet to add custom link to your plugin. The link will appear under description in plugin's description row.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.