Download the PHP package webshr/wp-update-sdk without Composer
On this page you can find all versions of the php package webshr/wp-update-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webshr/wp-update-sdk
More information about webshr/wp-update-sdk
Files in webshr/wp-update-sdk
Package wp-update-sdk
Short Description Composer-first WordPress update SDK for the Webshr update server.
License MIT
Homepage https://github.com/webshr/wp-update-sdk/
Informations about the package wp-update-sdk
Webshr WordPress Update SDK
Composer-first WordPress update client for the Webshr update server.
It registers plugin/theme updates, stores release channel preferences, provides an optional settings page, and supports optional license activation when your update server requires it.
Install
Use the updater through Composer autoloading:
Plugin Usage
Constructor Arguments
Theme Usage
Optional Licensing
Updates do not require a license unless your update server requires one for the package. When you need licensing, use the updater's license module:
For license keys injected from constants, set the key during plugin boot. This stores the key for metadata requests and pre-fills the settings field, but it does not mark the license active until activation succeeds:
You can also check or deactivate a stored license:
Settings Page
The SDK page includes:
- release channel selector:
stable,beta,alpha,rc - optional license key input
- save settings button
- activate/update license button
- check license button
- deactivate button
By default the page is added under Settings. You can also attach it to a top-level or submenu page:
For a submenu under an existing custom admin menu, use the parent menu slug:
Channels
The release channel is stored locally and always sent to the metadata endpoint:
Without an activated license, metadata requests include only the channel:
After a license is activated, metadata requests also include:
Package Structure
All versions of wp-update-sdk with dependencies
ext-json Version *