Translations::set_headers()publicWP 2.8.0

Sets translation headers.

Метод класса: Translations{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Translations = new Translations();
$Translations->set_headers( $headers );
$headers(массив) (обязательный)
Associative array of headers.

Список изменений

С версии 2.8.0 Введена.

Код Translations::set_headers() WP 6.5.2

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