oont-contents/plugins/jetpack-boost/jetpack_vendor/automattic/jetpack-licensing
2025-02-10 13:57:45 +01:00
..
src deleted unused plugins 2025-02-10 13:57:45 +01:00
CHANGELOG.md deleted unused plugins 2025-02-10 13:57:45 +01:00
composer.json deleted unused plugins 2025-02-10 13:57:45 +01:00
LICENSE.txt Themes & Plugins 2025-02-08 15:10:23 +01:00
README.md Themes & Plugins 2025-02-08 15:10:23 +01:00
SECURITY.md Themes & Plugins 2025-02-08 15:10:23 +01:00

Jetpack Licensing

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)