Last active
July 14, 2016 02:59
-
-
Save lloc/5685040 to your computer and use it in GitHub Desktop.
WordPress - Add link to plugin_row_meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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