Title: PO::set_comment_before_headers
Published: April 25, 2014
Last modified: May 20, 2026

---

# PO::set_comment_before_headers( string $text )

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/po/set_comment_before_headers/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/po/set_comment_before_headers/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/po/set_comment_before_headers/?output_format=md#source)

[ Back to top](https://developer.wordpress.org/reference/classes/po/set_comment_before_headers/?output_format=md#wp--skip-link--target)

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

## 󠀁[Description](https://developer.wordpress.org/reference/classes/po/set_comment_before_headers/?output_format=md#description)󠁿

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

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/po/set_comment_before_headers/?output_format=md#parameters)󠁿

 `$text`stringrequired

Text to include as a comment.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/po/set_comment_before_headers/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/pomo/po.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/pomo/po.php#L96)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/pomo/po.php#L96-L98)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fpo%2Fset_comment_before_headers%2F)
before being able to contribute a note or feedback.