content-pilot/wp-plugin-update-checker

Allow third-party, private plugins to be updated from GitHub

2.0.0 2024-05-02 16:05 UTC

This package is auto-updated.

Last update: 2025-05-01 00:09:19 UTC


README

Library to bootstrap plugin updates for third-party, private repositories if an access token is present. This class requires the Plugin Update Checker class v5 to be exist. Typically only included in CP Web Pilot to avoid conflict. Use the Debug Bar plugin to troubleshoot a proper connection.

Installation

Require this package in your composer.json

composer require content-pilot/wp-plugin-update-checker

Usage

Add the following snippets in your main plugin file.

use Content_Pilot\Wp_Plugin_Update_Checker\Bootstrap as Update;
public function __construct() {
    $this->run_update();
}
private function run_update() {
    $plugin_update = new Update( PLUGIN_NAME );
    $this->loader->add_action( 'plugins_loaded', $plugin_update, 'update_from_cloud', 10 );
}

Changelog

2.0.0
  • Require Plugin Update Checker 5
1.2.0
  • Change how license key is pulled from database
1.1.2
  • Remove the asset parameter so we grab the first asset on the release
1.1.1
  • Define the plugin path for the release asset
1.1.0
  • Enable release assets to grab the built version of the repository
1.0.1
  • Change plugin_dir_path to accomodate vendor directory nesting
  • Add README
  • Add CHANGELOG
1.0.0
  • Initial commit and release on Packagist