VaultPress::get_option PHP Method

get_option() public method

public get_option ( $key )
    function get_option($key)
    {
        if ('hostname' == $key) {
            if (defined('VAULTPRESS_HOSTNAME')) {
                return VAULTPRESS_HOSTNAME;
            } else {
                return 'vaultpress.com';
            }
        }
        if ('timeout' == $key) {
            if (defined('VAULTPRESS_TIMEOUT')) {
                return VAULTPRESS_TIMEOUT;
            } else {
                return 60;
            }
        }
        if ('disable_firewall' == $key) {
            if (defined('VAULTPRESS_DISABLE_FIREWALL')) {
                return VAULTPRESS_DISABLE_FIREWALL;
            } else {
                return false;
            }
        }
        if (('key' == $key || 'secret' == $key) && empty($this->options[$key])) {
            return '';
        }
        if (isset($this->options[$key])) {
            return $this->options[$key];
        }
        return false;
    }
VaultPress