Title: Stream::getUri
Published: May 20, 2026
Last modified: August 20, 2026

---

# Stream::getUri()

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

## Source

    ```php
    private function getUri()
    {
        if (\false !== $this->uri) {
            $this->uri = $this->getMetadata('uri') ?? \false;
        }
        return $this->uri;
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/php-ai-client/third-party/nyholm/psr7/stream.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/php-ai-client/third-party/Nyholm/Psr7/Stream.php#L99)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/php-ai-client/third-party/Nyholm/Psr7/Stream.php#L99-L105)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwordpress-aiclientdependencies-nyholm-psr7-stream%2Fgeturi%2F)
before being able to contribute a note or feedback.