code: public static function getBaseUrl()
      {
          $uri = self::addBackSlash(self::getUriMethods(), 'both');
          $url = self::addBackSlash(self::getCurrentPage());
  
          if ($uri !== '/') {
              $url = trim(str_replace($uri, '', $url), '/');
          }
  
          return self::addBackSlash($url);
      }
docs: Get base URL of the site.
  
  @since 1.1.0
  
  @return string → URL