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.1

apply_filters('status_header') is found 1 times:

  • /wp-includes/functions.php line 1474
    		 * @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: