comment_time

函数


comment_time ( $format = '' )
参数
  • (string)
    $format
    Optional. PHP time format. Defaults to the ‘time_format’ option.
    Required:
    Default: (empty)
定义位置
  • wp-includes/comment-template.php
    , line 1070
引入
0.71
弃用

Displays the comment time of the current comment.

function comment_time( $format = '' ) {
	echo get_comment_time( $format );
}