• Hi,

    I have found the following code to disable update functionality

    function xx_remove_update($value) {
    unset($value->response[ plugin_basename(__FILE__) ]);
    return $value;
    }
    add_filter(‘site_transient_update_plugins’, ‘xx_remove_update’);

    I need this because auto update does remove the whole folder and does also remove extra files my customer needs.

    The solution above works if the plugin is active. But not if deactivated.
    Is there a way to do this by only adding something in my plugin and without using any other plugin?

    Best, Michael

  • The topic ‘disable update notification on disabled plugin.’ is closed to new replies.