Update Blocker
Lightweight generic blocker of updates from official WordPress repositories
by Andrey "Rarst" Savchenko · github.com/rarst/update-blocker · website
★ 56stars
25kcomposer installs
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/rarst/update-blocker/archive/refs/heads/master.zipAlso on Packagist as rarst/update-blocker:
composer require rarst/update-blockerFrom the readme
Update Blocker — for WP repositories
Update Blocker is a lightweight generic blocker of plugin, theme, and core updates from official WordPress repositories.
It was created as shared reusable plugin for the sake of no longer reinventing that particular wheel.
Goals
- single main file
- mu-plugins–friendly
- no hard dependencies
Not goals
- interface
- elaborate API
- as–library use
- unreasonable compat
Installation
Plugin
1. Download ZIP.
2. Unpack files from inside into wp-content/plugins/update-blocker.
MU-plugin
1. Download update-blocker.php.
2. Place into wp-content/mu-plugins.
3. Edit settings for blocks in the file.
Composer
Create project in the wp-content/plugins:
Or require in composer.json of site project:
Requiring on plugin/theme level is not implemented, use suggest:
Configuration
Plugin's settings have following structure:
- all — boolean, disables updates completely
- files — array of plugin/theme root–relative files to detect for block
- plugins — array of plugin base names (folder-name/plugin-name.php) to block
- themes — array of theme slugs (theme-name) to block
- core — boolean, disables core updates
Settings pass through updateb
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 1.1 | Sep 3, 2016 | — | — |