wp_remote_retrieve_response_code
wp_remote_retrieve_response_code ( $response )
Parameters:- (array|WP_Error) response HTTP response.
Returns:- (int|string) The response code as an integer. Empty string if incorrect parameter given.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Retrieves only the response code from the raw response.Will return an empty string if incorrect parameter value is given.