Retrieves the IP address of the author of the current comment.
$comment_id = 0
Sortie :
@param int|WP_Comment $comment_id Optional. WP_Comment or the ID of the comment for which to get the author's IP address. @return string Comment author's IP address, or an empty string if it's not available.
// Utilisation de la fonction get_comment_author_IP
$result = get_comment_author_IP($comment_id = 0);
if ($result) {
// Votre logique ici
}
Chargement des actualités...