| 1 |
# Jetpack Status |
| 2 |
|
| 3 |
A status class for Jetpack. |
| 4 |
|
| 5 |
Used to retrieve information about the current status of Jetpack and the site overall. |
| 6 |
|
| 7 |
### Usage |
| 8 |
|
| 9 |
Find out whether the site is in offline mode: |
| 10 |
|
| 11 |
```php |
| 12 |
use Automattic\Jetpack\Status; |
| 13 |
|
| 14 |
$status = new Status(); |
| 15 |
$is_offline_mode = $status->is_offline_mode(); |
| 16 |
``` |
| 17 |
|
| 18 |
Find out whether this is a system with multiple networks: |
| 19 |
|
| 20 |
```php |
| 21 |
use Automattic\Jetpack\Status; |
| 22 |
|
| 23 |
$status = new Status(); |
| 24 |
$is_multi_network = $status->is_multi_network(); |
| 25 |
``` |
| 26 |
|
| 27 |
Find out whether this site is a single user site: |
| 28 |
|
| 29 |
```php |
| 30 |
use Automattic\Jetpack\Status; |
| 31 |
|
| 32 |
$status = new Status(); |
| 33 |
$is_single_user_site = $status->is_single_user_site(); |
| 34 |
``` |
| 35 |
## Using this package in your WordPress plugin |
| 36 |
|
| 37 |
If you plan on using this package in your WordPress plugin, we would recommend that you use [](https://packagist.org/packages/automattic/jetpack-autoloaderJetpack Autoloader](https://packagist.org/packages/automattic/jetpack-autoloader](https://packagist.org/packages/automattic/jetpack-autoloader) as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well. |
| 38 |
|
| 39 |
## Security |
| 40 |
|
| 41 |
Need to report a security vulnerability? Go to [](https://automattic.com/security/https://automattic.com/security/](https://automattic.com/security/](https://automattic.com/security/) or directly to our security bug bounty site [](https://hackerone.com/automattichttps://hackerone.com/automattic](https://hackerone.com/automattic](https://hackerone.com/automattic). |
| 42 |
|
| 43 |
## License |
| 44 |
|
| 45 |
jetpack-status is licensed under [](./LICENSE.txtGNU General Public License v2 (or later)](./LICENSE.txt](./LICENSE.txt) |
| 46 |
|