PHP code example of license-bridge / wordpress-sdk
1. Go to this page and download the library: Download license-bridge/wordpress-sdk 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/ */
license-bridge / wordpress-sdk example snippets
if (!function_exists('my_license')) {
function my_license()
{
global $my_license;
if ($my_license) {
return $my_license;
}
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
return null;
}
=> 'my-first-product',
]);
return $my_license;
}
my_license();
}