wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_remote_retrieve_body › WordPress Function

Desde2.7.0
Obsoleton/a
wp_remote_retrieve_body ( $response )
Parâmetros:
  • (array|WP_Error) $response HTTP response.
    Required: Yes
Retorna:
  • (string) The body of the response. Empty string if no body or incorrect parameter given.
Definido em:
Codex:

Retrieve only the body from the raw response.



Fonte

function wp_remote_retrieve_body( $response ) {
	if ( is_wp_error( $response ) || ! isset( $response['body'] ) ) {
		return '';
	}

	return $response['body'];
}