https://github.com/daggerhart/lock-plugins
Simple plugin that prevents requests for updates for a given list of plugins.
https://github.com/daggerhart/lock-plugins
wordpress
Last synced: 5 months ago
JSON representation
Simple plugin that prevents requests for updates for a given list of plugins.
- Host: GitHub
- URL: https://github.com/daggerhart/lock-plugins
- Owner: daggerhart
- Created: 2016-08-30T14:02:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-30T14:15:51.000Z (almost 10 years ago)
- Last Synced: 2025-10-08T20:22:53.654Z (9 months ago)
- Topics: wordpress
- Language: PHP
- Size: 1000 Bytes
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](https://codex.wordpress.org/Must_Use_Plugins), 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.
```php
add_filter('lock_plugins-locked_plugins', function($plugins){
$plugins[] = 'akismet/akismet.php';
return $plugins;
});
```