I want to display the IP directly after the comment author's name.
"Author (IP:123.231.191.11)"
Thus I added a filter:
<?php
function addip($author='')
{
return $author.' (IP:'.get_comment_author_IP().')'
}
add_filter('get_comment_author','addip');
?>
My question: Is this the correct code? Does "get_comment_author_IP()" (= without any ID) know automatically the correct comment?