WordPress.org

Make WordPress Core

Ticket #5117: kill_messages.php

File kill_messages.php, 377 bytes (added by strider72, 6 years ago)

example plugin showing filter usage

Line 
1<?php
2/*
3Plugin Name: Kill All 'Not Checked' Messages
4Description: Removes <em>all</em> of the "Not Checked for Updates" messages by adding a filter to 'plugin_updates_unknown'.
5Version: 0.1
6Date: 2008-06-14
7Author: Stephen Rider
8Author URI: http://striderweb.com/
9*/
10
11add_filter('plugin_updates_unknown','kill_all_unknowns');
12
13function kill_all_unknowns() {
14        return '';
15}
16
17?>