get_comment_date

FUNCTION wp-includes\comment-template.php (ligne 588) github
Filters the returned CSS classes for the current comment.

Paramètres

Entrée :
$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

// Utilisation de la fonction get_comment_date
$result = get_comment_date($format = '', $comment_id = 0);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...