Core Function
View Source on Trac ↗ wp_remote_retrieve_response_code()
wp_remote_retrieve_response_code( mixed $response ) Retrieves only the response code from the raw response.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (array | | WP_Error) $response HTTP response. Required |
Return Value
((int)
| string) The response code as an integer. Empty string if incorrect parameter given.
Function Information
Since Version
2.7.0
Source File
wp-includes/http.php
Advertisement