PO::comment_block() public WP 1.0
Prepare a text as a comment -- wraps the lines and prepends # and a special character to each line
{} Это метод класса: PO{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$result = PO::comment_block( $text, $char );
- $text(строка) (обязательный)
- the comment text
- $char(строка)
- character to denote a special PO comment, like :, default is a space
Код PO::comment_block() PO::comment block WP 5.7
public static function comment_block( $text, $char = ' ' ) {
$text = wordwrap( $text, PO_MAX_LINE_LEN - 3 );
return PO::prepend_each_line( $text, "#$char " );
}