get_comment_author_email

FUNCTION wp-includes\comment-template.php (ligne 73) github
Filters the comment author's name for display.

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 int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to get the author's email.
@return string The current comment author's email

Utilisation

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

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

Actualités

Chargement des actualités...