wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_remote_retrieve_body › WordPress Function

Seit2.7.0
Veraltetn/v
wp_remote_retrieve_body ( $response )
Parameter:
  • (array|WP_Error) $response HTTP response.
    Erforderlich: Ja
Gibt zurück:
  • (string) The body of the response. Empty string if no body or incorrect parameter given.
Definiert in:
Codex:

Retrieve only the body from the raw response.



Quellcode

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

	return $response['body'];
}