Get the root value for a setting, especially for multidimensional ones.

@access protected
@since 3.0.0
@param mixed $default Value to return if root does not exist.
@return mixed
554401
protected function get_root_value( $default = null ) {
		$id_base = $this->id_data['base'];

		// Get all user-meta.
		// We'll use this to check if the value is set or not,
		// in order to figure out if we need to return the default value.
		$user_meta = get_user_meta( get_current_user_id() );

		// Get the single meta.
		$single_meta = get_user_meta( get_current_user_id(), $id_base, true );

		if ( isset( $user_meta[ $id_base ] ) ) {
			return $single_meta;
		}
		return $default;
	}
1244238
public function getKeysValue($root = '/', $recursive = true, $key = null)
    {
        $this->ls($root, $recursive);
        if (isset($this->values[$key])) {
            return $this->values[$key];
        }
        return $this->values;
    }
751381
public function pop($key, $default=NULL){
        if(is_null($default)){
            $value = $this->offsetGet($key);
            $this->offsetUnset($key);
            return $value;
        }
        if($this->offsetExists($offset)){
            $value = $this->offsetGet($offset);
            return $value;
        }
        return $default;
    }
981337
public function getValue(string $name, $default = null)
    {
        $value = Arr::getByPath($this->config, $name, $default);

        if ($value && $value instanceof \Closure) {
            $value = $value();
        }

        return $value;
    }
564050
public static function getStringBaseValue($index, $default)
    {
        if (self::hasCustom($index)) {
            return (string) self::getCustom($index);
        }

        return (string) self::get($index, $default);
    }
226830
public static function get($key, $default = null) {
        $value = Hash::get(static::$_config, $key);

        if ($value === null) {
            return $default;
        }

        return $value;
    }
24202
public function get($key, $default = null)
    {
        if ($this->has($key)) {
            return shm_get_var($this->shm, $this->shm_key($key));
        } else {
            return $default;
        }
    }
863894
public function getSetting($name, $default = '')
    {

        if (array_key_exists($name, $this->settings)) {
            $value = $this->settings[$name];
        } else {
            $value = $default;
        }

        return $value;

    }
975396
public function get($key, $default = null) {
		$keys = explode('.', $key);
		$conf = empty($this->environment) ? $this->conf : $this->conf[$this->environment];
		foreach ($keys as $v) {
			if (isset($conf[$v])) {
				$conf = $conf[$v];
			} else {
				return $default;
			}
		}
		return $conf;
	}
102248
public function get(string $name, $default = null)
    {
        $all = $this->all();

        if (! array_key_exists($name, $all)) {
            return $default;
        }

        return $all[$name];
    }
731209
public static function getRootSettingValue($name, $defaultValue = null, $rootPid = null)
    {
        $setting = self::getRootSetting($rootPid);

        if (isset($setting[$name])) {
            $ret = $setting[$name];
        } else {
            $ret = $defaultValue;
        }

        return $ret;
    }
1014358
public function get($name, $default = null)
    {
        if (false === $this->has($name)) {
            return $default;
        }

        return $this->vars[$name];
    }
160455
public function get($key, $default = null)
    {
        if (! $this->has($key)) {
            return $default;
        }

        if (! $this->isNestedKey($key)) {
            return $this->items[$key];
        }

        return $this->getNestedValueByKey($key);
    }
712634
public function get($key, $default = NULL) {

		return array_key_exists($key, $this->values) ? $this->values[$key] : $default;

	}
296045
public function get($key, $default = null)
    {
        $value = parent::get($key, $default);
        if (is_array($value)) {
            $value = array_shift($value);
        }
        return $value;
    }
317921
public function getSettingsValue($key, $default = null)
    {
        if (array_key_exists($key, $this->fieldValues)) {
            return $this->fieldValues[$key];
        }

        return array_get($this->fieldValues, $key, $default);
    }
995028
public function get($key, $default = null) {
		$this->check();
		$value = $this->readValue($key);
		return is_null($value) ? $default : $value;
	}