Translations::set_headers()publicWP 2.8.0

Sets translation headers.

Method of the class: Translations{}

No Hooks.

Return

null. Nothing (null).

Usage

$Translations = new Translations();
$Translations->set_headers( $headers );
$headers(array) (required)
Associative array of headers.

Changelog

Since 2.8.0 Introduced.

Translations::set_headers() code WP 6.5.2

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