Download the PHP package rarst/update-blocker without Composer
On this page you can find all versions of the php package rarst/update-blocker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rarst/update-blocker
More information about rarst/update-blocker
Files in rarst/update-blocker
Package update-blocker
Short Description Lightweight generic blocker of updates from official WordPress repositories
License MIT
Homepage https://github.com/Rarst/update-blocker
Informations about the package update-blocker
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
- Download ZIP.
- Unpack files from inside into
wp-content/plugins/update-blocker
.
MU-plugin
- Download
update-blocker.php
. - Place into
wp-content/mu-plugins
. - 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 completelyfiles
— array of plugin/theme root–relative files to detect for blockplugins
— array of plugin base names (folder-name/plugin-name.php
) to blockthemes
— array of theme slugs (theme-name
) to blockcore
— boolean, disables core updates
Settings pass through update_blocker_blocked
filter.
Processed data passes through update_blocker_plugins
and update_blocker_themes
filters during update checks.
Plugin opt–in
Theme opt–in
Core opt–in
License
- MIT