comment_excerpt

FUNCTION wp-includes\comment-template.php (ligne 670) github
Filters the maximum number of words used in the comment excerpt.

Paramètres

Entrée :
$comment_id = 0
Sortie :
@param int $comment_excerpt_length The amount of words you want to display in the comment excerpt.
@param string     $comment_excerpt The comment excerpt text.
@param string     $comment_id      The comment ID as a numeric string.
@param WP_Comment $comment         The comment object.
@param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to print the excerpt.

Utilisation

// Utilisation de la fonction comment_excerpt
$result = comment_excerpt($comment_id = 0);

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

Actualités

Chargement des actualités...