wp_remote_retrieve_response_code

SummerySummery

Retrieve only the response code from the raw response.

Syntax

wp_remote_retrieve_response_code( array|WP_Error $response )

DescriptionDescription

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

ParametersParameters

$response

(array|WP_Error) (Required) HTTP response.

ReturnReturn

(int|string) The response code as an integer. Empty string on incorrect parameter given.

SourceSource

File: wp-includes/http.php


			

ChangelogChangelog

Changelog
Version Description
2.7.0 Introduced.
Scroll to Top