comment_date()

最后更新于:2021-11-25 21:10:31

comment_date( string$format=”, int|GC_Comment$comment_ID)

Displays the comment date of the current comment.

参数

$format

(string) (Optional) PHP date format. Defaults to the ‘date_format’ option.

Default value: ”

$comment_ID

(int|GC_Comment) (Optional) GC_Comment or ID of the comment for which to print the date. Default current comment.

源文件

文件: gc-includes/comment-template.php

function comment_date( $format = '', $comment_ID = 0 ) {
	echo get_comment_date( $format, $comment_ID );
}