PHP code example of content-pilot / wp-plugin-update-checker

1. Go to this page and download the library: Download content-pilot/wp-plugin-update-checker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

content-pilot / wp-plugin-update-checker example snippets


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 );
}