Title: Requests::put
Published: March 29, 2023
Last modified: November 8, 2023

---

# Requests::put( $url,  $headers = array(),  $data = array(),  $options = array() )

Send a PUT request

## Source

    ```php
    public static function put($url, $headers = [], $data = [], $options = []) {
    	return self::request($url, $headers, $data, self::PUT, $options);
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/requests/src/requests.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/Requests/src/Requests.php#L347)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/Requests/src/Requests.php#L347-L349)

## User Contributed Notes

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