Definition:
function wp_remote_retrieve_response_message(&$response) {}
Retrieve only the response message from the raw response.
Will return an empty array if incorrect parameter value is given.
Parameters
- array $response: HTTP response.
- &$response
Return values
returns:The response message. Empty string on incorrect parameter given.
Source code
function wp_remote_retrieve_response_message(&$response) { if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response'])) return ''; return $response['response']['message']; }
4051
No comments yet... Be the first to leave a reply!