PHP code example of automattic / jetpack-licensing

1. Go to this page and download the library: Download automattic/jetpack-licensing library. Choose the download type require.

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

3. Add this code to the index.php.

/* Start to develop here. Best regards */


automattic / jetpack-licensing example snippets

use Automattic\Jetpack\Licensing;


use Automattic\Jetpack\Licensing;

$licenses = array( 'license_key_1', 'license_key_2' );
$results  = Licensing::instance()->attach_licenses( $licenses );