PHPackages                             wp-forge/wp-update-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wp-forge/wp-update-handler

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wp-forge/wp-update-handler
==========================

A WordPress package for updating custom plugins and themes based on an API response from a custom update server.

1.0.2(2y ago)14135.8k—3%4[1 issues](https://github.com/wp-forge/wp-update-handler/issues)GPL-2.0-or-laterPHP

Since Sep 29Pushed 2y ago3 watchersCompare

[ Source](https://github.com/wp-forge/wp-update-handler)[ Packagist](https://packagist.org/packages/wp-forge/wp-update-handler)[ RSS](/packages/wp-forge-wp-update-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

WordPress Update Handler
========================

[](#wordpress-update-handler)

A WordPress package for updating custom plugins and themes based on an JSON REST API response from a custom update server.

Check out the [WordPress GitHub Release API](https://github.com/wp-forge/worker-wp-github-release-api) repository to learn how to quickly launch a custom update server that fetches releases from GitHub using Cloudflare Workers.

Plugins
-------

[](#plugins)

This package expects your custom plugin info API to respond with the same shape as the [WordPress plugin info API](https://codex.wordpress.org/WordPress.org_API#Plugins). However, if your API response has a different shape, you can map fields to those returned by your API.

### Usage

[](#usage)

Basic example:

```
