A WordPress-centric search engine for devs and theme authors



comment_date ›

Since0.71
Deprecatedn/a
comment_date ( $d = '', $comment_ID = 0 )
Parameters: (2)
  • (string) $d Optional. The format of the date. Default user's settings.
    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

Display the comment date of the current comment.



Source

function comment_date( $d = '', $comment_ID = 0 ) {
	echo get_comment_date( $d, $comment_ID );
}