1. Go to this page and download the library: Download apermo/wp-update-server 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/ */
apermo / wp-update-server example snippets
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
$updateChecker = PucFactory::buildUpdateChecker(
'https://your-server.com/wp-update-server/?action=get_metadata&slug=my-plugin',
__FILE__,
'my-plugin'
);
return [
'auth' => [
'ee-plugin'], // these don't need a key
'licenses_file' => 'licenses.json',
],
];