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



comment_date › WordPress Function

Since0.71
Deprecatedn/a
comment_date ( $format = '', $comment_id = 0 )
Parameters: (2)
  • (string) $format Optional. PHP date format. Defaults to the 'date_format' option.
    Required: No
    Default: (empty)
  • (int|WP_Comment) $comment_id WP_Comment or ID of the comment for which to print the date. Default current comment.
    Required: No
    Default:
Defined at:
Codex:
Change Log:
  • 4.4.0

Displays the comment date of the current comment.



Source

function comment_date( $format = '', $comment_id = 0 ) {
	echo get_comment_date( $format, $comment_id );
}