Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_remote_retrieve_body [ WordPress Function ]

wp_remote_retrieve_body ( $response )
Parameters:
  • (array) $response HTTP response.
Returns:
  • (string) The body of the response. Empty string if no body or incorrect parameter given.
Defined at:



Retrieve only the body from the raw response.

Source


<?php
function wp_remote_retrieve_body(&$response) {
    if ( 
is_wp_error($response) || ! isset($response['body']) )
        return 
'';

    return 
$response['body'];
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics