Switch language

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




wp_get_http_headers [ WordPress Function ]

wp_get_http_headers ( $url, $deprecated = false )
Parameters:
  • (string) $url
  • (bool) $deprecated Not Used.
Returns:
  • (bool|string) False on failure, headers on success.
Defined at:



Retrieve HTTP Headers from URL.

Source


<?php
function wp_get_http_headers$url$deprecated false ) {
    if ( !empty( 
$deprecated ) )
        
_deprecated_argument__FUNCTION__'2.7' );

    
$response wp_remote_head$url );

    if ( 
is_wp_error$response ) )
        return 
false;

    return 
wp_remote_retrieve_headers$response );
}
?>

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