automattic/jetpack-licensing

Everything needed to manage Jetpack licenses client-side.

Package info

github.com/Automattic/jetpack-licensing

Type:jetpack-library

pkg:composer/automattic/jetpack-licensing

Statistics

Installs: 43 389

Dependents: 2

Suggesters: 0

Stars: 9

v3.1.9 2026-06-08 08:29 UTC

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 40d810d78bb2b0a32380ea8ed18bcb964a838424

This package is auto-updated.

Last update: 2026-06-16 11:57:39 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 );

Using this package in your WordPress plugin

If you plan on using this package in your WordPress plugin, we would recommend that you use Jetpack Autoloader as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.

Security

Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.

License

jetpack-licensing is licensed under GNU General Public License v2 (or later)