automattic/jetpack-identity-crisis

Identity Crisis.

Installs: 1 797

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Language:CSS

v0.3.0 2021-10-26 14:15 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();