1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Kill This 'Not Checked' Message |
---|
4 | Description: Removes the "Not Checked for Updates" message <em>for this plugin only</em> by adding a filter to 'plugin_updates_unknown'. Of course we could change it to something else instead. |
---|
5 | Version: 0.1 |
---|
6 | Date: 2008-06-14 |
---|
7 | Author: Stephen Rider |
---|
8 | Author URI: http://striderweb.com/ |
---|
9 | */ |
---|
10 | |
---|
11 | add_filter('plugin_updates_unknown','kill_this_unknown', 10, 2); |
---|
12 | |
---|
13 | function kill_this_unknown($output, $file) { |
---|
14 | static $this_plugin; |
---|
15 | if( !$this_plugin ) $this_plugin = plugin_basename(__FILE__); |
---|
16 | |
---|
17 | if( $file == $this_plugin ) $output = ''; |
---|
18 | return $output; |
---|
19 | } |
---|
20 | |
---|
21 | ?> |
---|