PHP code example of matthiasweb / wordpress-plugin-updater
1. Go to this page and download the library: Download matthiasweb/wordpress-plugin-updater 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/ */
matthiasweb / wordpress-plugin-updater example snippets
// Your Updater instance
$client = \MatthiasWeb\...;
if ($client->isActivated()) {
/*
* The User has activated the plugin.
* Add your plugin functionality here.
*/
} else {
/*
* The User has *NOT* activated the plugin.
* Add activation messages etc here, for example on your plugin settings page.
*/
}