Core Function
View Source on Trac ↗ comment_time()
comment_time( mixed $format = '', mixed $comment_id = 0 ) Displays the comment time of the current comment.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $format string | Optional. PHP time format. Defaults to the 'time_format' option. |
| mixed | (int | WP_Comment) $comment_id Optional. WP_Comment or ID of the comment for which to print the time. Default current comment. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
0.71
Source File
wp-includes/comment-template.php
Advertisement