public function enabled()
{
// Bail if CLI.
if (defined('WP_CLI') and WP_CLI) {
return false;
}
// Pull our status from the options table.
$option = get_site_option('airplane-mode');
// Backup check for regular options table.
if (false === $option) {
$option = get_option('airplane-mode');
}
// Return the option flag.
return 'on' === $option;
}