wpseek.com
WordPress开发者和主题制作者的搜索引擎



comment_time › WordPress Function

Since0.71
已弃用n/a
comment_time ( $format = '', $comment_id = 0 )
参数: (2)
  • (string) $format Optional. PHP time format. Defaults to the 'time_format' option.
    Required: No
    默认: (empty)
  • (int|WP_Comment) $comment_id Optional. WP_Comment or ID of the comment for which to print the time. Default current comment.
    Required: No
    默认:
定义在:
文档:
Change Log:
  • 6.2.0

Displays the comment time of the current comment.



源码

function comment_time( $format = '', $comment_id = 0 ) {
	echo get_comment_time( $format, false, true, $comment_id );
}