If I rename a plugin (in its main php file) do I still get update notifications?

The question:

I’ve recently been forced to edit the core files of a plugin. I’ve updated the title of said plugin to indicate that its been edited.

My question is will the plugin still get update notifications? If so, I’ll likely disable the updates for this plugin, to prevent someone forgetting about my updates and overwriting.

Ideally, I would like to see if the plugin gets updates, but not allow them to happen just by clicking update. (it would have to be uninstalled and reinstalled, or similar).

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

As SickHippie says and AFAIK, you can’t have both. I’m adding an answer with the info I collected in this Stack.

Disable update notification for individual plugins

Bainternet in a Comment:

Simply open up the plugin file and change the version number to something like 9.9.9

Hameedullah Khan’s Answer (removing Akismet update notice):

function filter_plugin_updates( $value ) {
    unset( $value->response['akismet/akismet.php'] );
    return $value;
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );

What Triggers a Plugin Update Alert

Otto’s Answer:

The API uses a rather elaborate mechanism to match plugins against
plugins it knows about, but these are the main things checked for:
Plugin URI, Plugin Name, and Plugin slug (the directory name the
plugin is in)

Change any of those and you reduce the chances of it finding a match,
but it might still get it if two of them match, for example.

Info in the readme.txt is not used for this. The header of the
plugin’s PHP file itself is used.

Alternative approach 1

Alternative approach 2 pulled from the Comments

  • change the plugin name, version number, and directory name
  • install the original plugin but leave it deactivated to receive update notices
  • add a custom message to the plugin description (or replace the original)
  • remove the plugin actions (Activate|Edit|Delete) and the checkbox for Bulk Actions

enter image description here

add_filter( 'all_plugins', 'wpse_56968_on_list_plugins' );
add_filter( 'plugin_action_links_akismet/akismet.php', 'wpse_56968_remove_plugin_actions', 10, 4 );
add_action( 'admin_head-plugins.php', 'wpse_56968_remove_plugin_checkbox' );

function wpse_56968_on_list_plugins( $plugins )
    $plugins['akismet/akismet.php']['Description'] = '<strong>*** NOTICE: PLUGIN ONLY TO CHECK UPDATES IN THE ORIGINAL ONE! ***</strong> ';// . $plugins['akismet/akismet.php']['Description'];
    return $plugins;

function wpse_56968_remove_plugin_actions( $actions, $plugin_file, $plugin_data, $context ) 
    unset( $actions['activate'], $actions['edit'], $actions['delete'] );
    return $actions; 

function wpse_56968_remove_plugin_checkbox()
        <script type="text/javascript">
            jQuery(document).ready( function($) {
                $('tr#akismet th.check-column').html('&nbsp;')

Related Core Tickets

Method 2

You can’t disable updates but not update notifications – they’re tied together.

To disable notifications altogether, change the folder name the plugin sits in.

My personal method is prepend 3 a’s to the title of the plugin in the main plugin.php file, so in my plugin list I see AAA/Plugin Name. This puts it up at the top of the list for reference, and will show in the plugin list and in the update list. It’s basically a personal flag so I know to not autoupdate those specific plugins.

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment