wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



comment_date › WordPress Function

Depuis0.71
Dépréciéen/a
comment_date ( $format = '', $comment_id = 0 )
Paramètres: (2)
  • (string) $format Optional. PHP date format. Defaults to the 'date_format' option.
    Requis: Non
    Défaut: (vide)
  • (int|WP_Comment) $comment_id WP_Comment or ID of the comment for which to print the date. Default current comment.
    Requis: Non
    Défaut:
Défini(e) dans:
Codex:
Changelog:
  • 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 );
}