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 ) #


Parameters

$headers

(array)(Required)


Top ↑

Source

File: wp-includes/pomo/translations.php

		public function set_headers( $headers ) {
			foreach ( $headers as $header => $value ) {
				$this->set_header( $header, $value );
			}
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.