Skip to content
Simple plugin that prevents requests for updates for a given list of plugins.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
lock-plugins.php

README.md

Lock Plugins

A simple WordPress plugin that allows developers to prevent other plugins from updating.

Inspiration: https://twitter.com/danielbachhuber/status/768907891294121984

Usage

Chances are you'd want to put this plugin to be a Must Use Plugin, to prevent it from being disabled.

Then in another plugin, use the following filter to add your list of plugins that should not look for updates.

add_filter('lock_plugins-locked_plugins', function($plugins){
  $plugins[] = 'akismet/akismet.php';

  return $plugins;
});
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.