PHP code example of automattic / jetpack-identity-crisis

1. Go to this page and download the library: Download automattic/jetpack-identity-crisis library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

automattic / jetpack-identity-crisis example snippets


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' );
}

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

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