HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
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;
    }

}