PO::set_comment_before_headers() WordPress Method

The PO::set_comment_before_headers() Wordpress method is used to add comments before the headers in a PO file. This is useful for adding notes or warnings to translators.

PO::set_comment_before_headers( string $text ) #

Text to include as a comment before the start of the PO contents


Description

Doesn’t need to include # in the beginning of lines, these are added automatically


Top ↑

Parameters

$text

(string)(Required)Text to include as a comment.


Top ↑

Source

File: wp-includes/pomo/po.php

		public function set_comment_before_headers( $text ) {
			$this->comments_before_headers = $text;
		}

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.