WPDev.one
Core Function
View Source on Trac ↗

get_comment_date()

get_comment_date( mixed $format = '', mixed $comment_id = 0 )

Retrieves the comment date of the current comment.

Parameters 1 required

Name / Type Description
$format
string

Optional. PHP date format. Defaults to the 'date_format' option.

mixed

(int | WP_Comment) $comment_id Optional. WP_Comment or ID of the comment for which to get the date. Default current comment.

Required

Return Value

(string)
The comment's date.

Function Information

Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement