status_header

status_header

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('status_header') is found 1 times:

  • /wp-includes/functions.php line 1474
    1470
    1471
    1472
    1473
    1474
    1475
    1476
    1477
    1478
    1479
    1480
             * @param int    $code          HTTP status code.
             * @param string $description   Description for the status code.
             * @param string $protocol      Server protocol.
             */
            $status_header = apply_filters( 'status_header', $status_header, $code, $description, $protocol );
        }
     
        if ( ! headers_sent() ) {
            header( $status_header, true, $code );
        }
    }

See this hook used in plugins: