PHP code example of automattic / jetpack-status

1. Go to this page and download the library: Download automattic/jetpack-status 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-status example snippets


use Automattic\Jetpack\Status;

$status = new Status();
$is_offline_mode = $status->is_offline_mode();

use Automattic\Jetpack\Status;

$status = new Status();
$is_multi_network = $status->is_multi_network();

use Automattic\Jetpack\Status;

$status = new Status();
$is_single_user_site = $status->is_single_user_site();