wp_remote_retrieve_response_code


wp_remote_retrieve_response_code ( $response )

Parameters:
  • (array) $response HTTP response.
Returns:
  • (int|string) The response code as an integer. Empty string on incorrect parameter given.
Defined at:

Description

Retrieve only the response code from the raw response.

Will return an empty array if incorrect parameter value is given.

Related Functions

wp_remote_retrieve_response_message, wp_remote_retrieve_cookie, wp_remote_retrieve_header, wp_remote_retrieve_body, wp_remote_retrieve_headers

Top Google Results

User discussions

wpseek mobile