Title: custom plugin update?
Last modified: August 19, 2016

---

# custom plugin update?

 *  [bmb](https://wordpress.org/support/users/bmb/)
 * (@bmb)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-plugin-update/)
 * I wrote a small custom plugin for my site. When I went to the plugins admin panel
   to activate it, it tells me there is a newer version and offers to update it.
   Huh?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Anonymous User
 * (@anonymized-3085)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-plugin-update/#post-1816052)
 * you’ve named it the same as one available in the repository.
 *  Thread Starter [bmb](https://wordpress.org/support/users/bmb/)
 * (@bmb)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-plugin-update/#post-1816105)
 * Named it where? in the comments at the top it has a unique name. anywhere else?
 *  Anonymous User
 * (@anonymized-3085)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/custom-plugin-update/#post-1816111)
 * directory name?
 * you could always add a version number ridiculously high or…
 * and apologies to whomever I got this from, use something like this:
 *     ```
       function cws_hidden_plugin_12345( $r, $url ) {
       	if ( 0 !== strpos( $url, 'http://api.wordpress.org/plugins/update-check' ) )
       		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 );
       ```
   
 * I’ve yet to test it out.

Viewing 3 replies - 1 through 3 (of 3 total)

 The topic ‘custom plugin update?’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: Anonymous User
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/custom-plugin-update/#post-1816111)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
