Filters the returned CSS classes for the current comment.
$format = '', $comment_id = 0
Sortie :
@param string[] $classes An array of comment classes. @param string[] $css_class An array of additional classes added to the list. @param string $comment_id The comment ID as a numeric string. @param WP_Comment $comment The comment object. @param int|WP_Post $post The post ID or WP_Post object. @param string $format Optional. PHP date format. Defaults to the 'date_format' option. @param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to get the date. @return string The comment's date.
// Utilisation de la fonction get_comment_date
$result = get_comment_date($format = '', $comment_id = 0);
if ($result) {
// Votre logique ici
}
Chargement des actualités...