Translations::set_headers() WordPress Method
The Translations::set_headers() method allows you to modify the HTTP headers that will be sent to the client when serving a page. This can be useful if you need to change the content-type of the page, or add caching headers.
Translations::set_headers( array $headers ) #
Contents
Parameters
- $headers
(array)(Required)
Source
File: wp-includes/pomo/translations.php
public function set_headers( $headers ) { foreach ( $headers as $header => $value ) { $this->set_header( $header, $value ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub