get_comment_author_link

FUNCTION wp-includes\comment-template.php (ligne 191) github
Filters the comment author's email for display. Care should be taken to protect the email address and assure that email harvesters do not capture your commenter's email address.

Paramètres

Entrée :
$comment_id = 0
Sortie :
@param string     $comment_author_email The comment author's email address.
@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 get the author's link.
@return string The comment author name or HTML link for author's URL.

Utilisation

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

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

Actualités

Chargement des actualités...