automattic / jetpack-status
Used to retrieve information about the current status of Jetpack and the site overall.
v1.7.0
2020-12-14 08:17 UTC
Requires (Dev)
- brain/monkey: 2.6.0
- yoast/phpunit-polyfills: 0.2.0
This package is auto-updated.
Last update: 2021-01-19 14:26:06 UTC
README
A status class for Jetpack.
Used to retrieve information about the current status of Jetpack and the site overall.
Usage
Find out whether the site is in offline mode:
use Automattic\Jetpack\Status; $status = new Status(); $is_offline_mode = $status->is_offline_mode();
Find out whether this is a system with multiple networks:
use Automattic\Jetpack\Status; $status = new Status(); $is_multi_network = $status->is_multi_network();
Find out whether this site is a single user site:
use Automattic\Jetpack\Status; $status = new Status(); $is_single_user_site = $status->is_single_user_site();