wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_remote_retrieve_body › WordPress Function

Da2.7.0
Deprecaton/a
wp_remote_retrieve_body ( $response )
Parametri:
  • (array|WP_Error) $response HTTP response.
    Richiesto:
Ritorna:
  • (string) The body of the response. Empty string if no body or incorrect parameter given.
Definito a:
Codex:

Retrieve only the body from the raw response.



Sorgenti

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

	return $response['body'];
}