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
Contents
Description
Doesn’t need to include # in the beginning of lines, these are added automatically
Parameters
- $text
(string)(Required)Text to include as a comment.
Source
File: wp-includes/pomo/po.php
public function set_comment_before_headers( $text ) { $this->comments_before_headers = $text; }
Expand full source codeCollapse full source codeView on TracView on GitHub