WP::send_headers

SummerySummery

Sends additional HTTP headers for caching, content type, etc.

Syntax

WP::send_headers()

DescriptionDescription

Sets the Content-Type header. Sets the ‘error’ status (if passed) and optionally exits. If showing a feed, it will also send Last-Modified, ETag, and 304 status if needed.

SourceSource

File: wp-includes/class-wp.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 X-Pingback header is added conditionally after posts have been queried in handle_404().
2.0.0 Introduced.
Scroll to Top