Switch language

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




wp_remote_retrieve_headers [ WordPress Function ]

wp_remote_retrieve_headers ( $response )
Parameters:
  • (array) $response HTTP response.
Returns:
  • (array) The headers of the response. Empty array if incorrect parameter given.
Defined at:



Retrieve only the headers from the raw response.

Source


<?php
function wp_remote_retrieve_headers(&$response) {
    if ( 
is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers']))
        return array();

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

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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