automattic/jetpack-identity-crisis

This package is abandoned and no longer maintained. The author suggests using the automattic/jetpack-connection package instead.

Identity Crisis.

Package info

github.com/Automattic/jetpack-identity-crisis

Type:jetpack-library

pkg:composer/automattic/jetpack-identity-crisis

Statistics

Installs: 599 059

Dependents: 2

Suggesters: 0

Stars: 2

v0.21.0 2024-05-30 21:25 UTC

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 48aede621d97d6a0166f486eceececb5f7f75768

This package is auto-updated.

Last update: 2024-05-30 21:26:11 UTC


README

Identity Crisis

Usage

The Identity Crisis package can be initialized using the Config package as shown in the example below.

use Automattic\Jetpack\Config;

// Configuring as early as plugins_loaded priority 1
// to make sure every action handler gets properly set.
add_action( 'plugins_loaded', 'configure_identity_crisis', 1 );

function configure_identity_crisis() {
 $config = new Config();
 $config->ensure( 'identity_crisis' );
}

The Identity Crisis package can also be initialized directly.

// Initialize Identity Crisis.
add_action( 'plugins_loaded', array( 'Automattic\\Jetpack\\Identity_Crisis', 'init' ) );

Examples

Clearing IDC options.

namespace Automattic\Jetpack\Identity_Crisis;
Identity_Crisis::clear_all_idc_options();

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-identity-crisis is licensed under GNU General Public License v2 (or later)