File: /var/www/html/wp-content/plugins/adnkronos/src/Options/AccountOptions.php
<?php
namespace AdnKronos\Options;
/**
* Reads and writes the account/consent options stored under 'adnk_settings_options'.
*/
class AccountOptions {
const OPTION_KEY = 'adnk_settings_options';
/**
* @return array
*/
public function getAll() {
$options = get_option(self::OPTION_KEY);
return is_array($options) ? $options : array();
}
/**
* @param string $key
* @return mixed|null
*/
public function get($key) {
$options = $this->getAll();
return isset($options[$key]) ? $options[$key] : null;
}
}