Summery Summery
Retrieve only the response code from the raw response.
Syntax Syntax
Description Description
Will return an empty array if incorrect parameter value is given.
Parameters Parameters
- $response
-
(Required) HTTP response.
Return Return
(int|string) The response code as an integer. Empty string on incorrect parameter given.
Source Source
File: wp-includes/http.php
return ''; } return $response['response']['code']; } /**
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |