wpseek.com
A WordPress-centric search engine for devs and theme authors



comment_time › WordPress Function

Since0.71
Deprecatedn/a
comment_time ( $format = '', $comment_id = 0 )
Parameters: (2)
  • (string) $format Optional. PHP time format. Defaults to the 'time_format' option.
    Required: No
    Default: (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
    Default:
Defined at:
Codex:
Change Log:
  • 6.2.0

Displays the comment time of the current comment.



Source

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