Inpsyde\MultilingualPress\Common\Setting\User\SecureUserSettingUpdater::get_value PHP 메소드

get_value() 개인적인 메소드

Returns the value included in the request.
private get_value ( ) : string
리턴 string The value included in the request.
    private function get_value()
    {
        $value = array_key_exists($this->meta_key, $_GET) ? $_GET[$this->meta_key] : '';
        if (empty($_SERVER['REQUEST_METHOD']) || 'POST' !== strtoupper($_SERVER['REQUEST_METHOD'])) {
            return $value;
        }
        return array_key_exists($this->meta_key, $_POST) ? $_POST[$this->meta_key] : '';
    }
SecureUserSettingUpdater