wp-includes/comment-template.php:344$comment_idint|WP_Commentoptional0function comment_author_IP( $comment_id = 0 ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid echo esc_html( get_comment_author_IP( $comment_id ) );}Introduced in 0.71. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$comment_id to also accept a WP_Comment object.from the docblocksrc/wp-includes/comment-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.