comment_excerpt_length

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

Paramètres

Entrée :
$comment_excerpt_length
Sortie :
@param int $comment_excerpt_length The amount of words you want to display in the comment excerpt.

Utilisation

// Modifier la valeur avec le filtre 'comment_excerpt_length'
add_filter('comment_excerpt_length', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($comment_excerpt_length) {
    // Modifier la valeur
    return $comment_excerpt_length;
}

Actualités

Chargement des actualités...