Switch language

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




status_header [ WordPress Function ]

status_header ( $header )
Parameters:
  • (int) $header HTTP status code
Uses:
Returns:
  • (unknown)
Defined at:



Set HTTP status header.

Source


<?php
function status_header$header ) {
    
$text get_status_header_desc$header );

    if ( empty( 
$text ) )
        return 
false;

    
$protocol $_SERVER["SERVER_PROTOCOL"];
    if ( 
'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol )
        
$protocol 'HTTP/1.0';
    
$status_header "$protocol $header $text";
    if ( 
function_exists'apply_filters' ) )
        
$status_header apply_filters'status_header'$status_header$header$text$protocol );

    return @
header$status_headertrue$header );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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