automattic/jetpack-licensing

Everything needed to manage Jetpack licenses client-side.

v1.3.0 2021-01-05 14:01 UTC

README

A Licensing Package that attaches Jetpack licenses.

Usage

Initialize to automatically attach licenses when:

  • The jetpack_licenses option is updated.
  • Jetpack is connected.
use Automattic\Jetpack\Licensing;

Licensing::instance()->initialize();

Attach an array of license keys.

use Automattic\Jetpack\Licensing;

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