Skip to content

Instantly share code, notes, and snippets.

@lloc
Last active July 14, 2016 02:59
Show Gist options
  • Save lloc/5685040 to your computer and use it in GitHub Desktop.
Save lloc/5685040 to your computer and use it in GitHub Desktop.
WordPress - Add link to plugin_row_meta
<?php
define( 'PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
function my_plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
if ( PLUGIN_BASENAME == $plugin_file )
$plugin_meta[] = '<a href="#">Test: plugin_row_meta</a>';
return $plugin_meta;
}
add_filter( 'plugin_row_meta', 'my_plugin_row_meta', 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment