get_comment_text

FUNCTION wp-includes\comment-template.php (ligne 1001) github
Filters the comments count for display.

Paramètres

Entrée :
$comment_id = 0, $args = array(
Sortie :
@param string $comments_number_text A translatable string formatted based on whether the count
@param int    $comments_number      The number of post comments.
@param int|WP_Comment $comment_id Optional. WP_Comment or ID of the comment for which to get the text.
@param array          $args       Optional. An array of arguments. Default empty array.
@return string The comment content.

Utilisation

// Utilisation de la fonction get_comment_text
$result = get_comment_text($comment_id = 0, $args = array();

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

Actualités

Chargement des actualités...