Click here to download this plugin
Here is a preview of the plugin:
<?php
/*
Plugin Name: Hidden Plugin 12345
Description: This is a dummy plugin that excludes itself from the WP.org plugin update check array
Version: 0.1
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
/*
Copyright 2024 Mark Jaquith (email: mark.gpl@txfx.net)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
function cws_hidden_plugin_12345( $r, $url ) {
if ( strpos( $url, 'http://api.wordpress.org/plugins/update-check' ) !== 0 )
return $r; // Not a plugin update request. Bail immediately.
$plugins = unserialize( $r['body']['plugins'] );
unset( $plugins->plugins[ plugin_basename( __FILE__ ) ] );
unset( $plugins->active[ array_search( plugin_basename( __FILE__ ), $plugins->active ) ] );
$r['body']['plugins'] = serialize( $plugins );
return $r;
}
add_filter( 'http_request_args', 'cws_hidden_plugin_12345', 5, 2 );