W3cubDocs

/WordPress

apply_filters( 'pre_comment_user_ip', string $comment_author_ip )

Filters the comment author’s IP address before it is set.

Parameters

$comment_author_ip

(string) The comment author's IP address.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_comment_user_ip