A WordPress-centric search engine for devs and theme authors



pre_comment_user_ip ›

Since1.5.0
Deprecatedn/a
apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] )
Parameters:
  • (string) $comment_author_ip The comment author's IP address.
    Required: Yes
Defined at:
Codex:

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





Source

$commentdata['comment_author_IP'] = apply_filters( 'pre_comment_user_ip', $commentdata['comment_author_IP'] );