get_comment_author

FUNCTION wp-includes\comment-template.php (ligne 2) github
Comment template functions These functions are meant to live inside of the WordPress loop.

Paramètres

Entrée :
$comment_id = 0
Sortie :
@param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to retrieve the author.
@return string The comment author

Utilisation

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

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

Actualités

Chargement des actualités...