get_comment_time


get_comment_time ( $format = '', $gmt = false, $translate = true, $comment_id = 0 )

Parameters:
  • (string) format Optional. PHP date format. Defaults to the 'time_format' option.
  • (bool) gmt Optional. Whether to use the GMT date. Default false.
  • (bool) translate Optional. Whether to translate the time (for use in feeds). Default true.
  • (int|WP_Comment) comment_id Optional. WP_Comment or ID of the comment for which to get the time. Default current comment.
Returns:
  • (string) The formatted time.
Defined at:
Change Log:
  • 6: .

Description

Retrieves the comment time of the current comment.

Related Functions

get_comment_date, get_comment_meta, get_comment_text, get_comment_type, get_comment_id

Top Google Results

User discussions

wpseek mobile