comment_author

FUNCTION wp-includes\comment-template.php (ligne 46) github
Filters the returned comment author name.

Paramètres

Entrée :
$comment_id = 0
Sortie :
@param string     $comment_author The comment author's username.
@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 the ID of the comment for which to print the author.

Utilisation

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

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

Actualités

Chargement des actualités...