Add this to your functions.php:
add_filter('pre_comment_user_ip', 'no_ips');
function no_ips($comment_author_ip){
return '';
}
You’ll still have the comment_author_IP field in the db, but it will be empty…
And to remove existing IP records from the db run this query:
UPDATE `wp_comments` SET `comment_author_IP` = ''
Related Posts:
- How can I hide the IP of registered commentators?
- Limit action in comment according to IP
- Add option to disable comments on a per posts basis?
- Paginate result set from $wpdb->get_results()
- Change Comment Author Display Name
- What should I do to make generated avatars different for anonymous comments?
- Check If comment author is registered
- Running a function on comment status change
- Hook to edit an column on comments screen?
- Comment Author Name In Reply Form
- Is there any advantage to emptying comment spam?
- how to make author to write comment on only his own posts?
- Twitter/Facebook login for comments [closed]
- Add delete, approve, spam Links to Comments
- FB – Comment Moderation Tool bug or error in the code?
- If new comment posted in custom post – send notification to custom email from custom field
- Disable Admin account being emailed for comment notification
- How to allow commentetors to get notifications on replies to their comments?
- Can I have two single.php files and have one display just the post and the other display comments for that specific post?
- How can I change the link in comment form “Log in to post a comment”?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- Does wp_new_comment expect a comment in HTML?
- Comments: Approve when admin Replies, from the Front end
- Draft / schedule comments?
- How to insert Comment metadata via REST API
- Opening all posts for comments
- Unix timestamp for post comment
- Show only if x comments?
- Ajax comments not working
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- How to display nothing (instead default) when no user gravatar is present?
- How to query comments only for the current post?
- Redirect to page 2 after comment
- How to change avatar of the comment author using comment ID?
- WordPress Comments are automatically publishing
- save_post action hook for comments
- Automatically increase comment karma on comment save
- How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?
- All users/comments suspected as bot? [closed]
- Count comment threads, not total comments in a post
- Show comments of a user post only when they are login
- comments in Admin
- How to get and use the the number of days since the last comment?
- Get all child comments ids from parent comment id
- How do I add class to an admin comment?
- Best way to tell if a comment is from a user?
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- WordPress Spam Comment Filter
- Which hook do I use to edit pending comment count on wordpress dashboard?
- Add comment_id on Comments page within wp-admin
- Comment IP Plugin – Fixing onfocus=’this.select()’
- comment button shows only logged in users wordpress
- Getting comments of an specefic user
- I update a post and it creates a pingback? Any idea why?
- How can I embed comments plugin to my own website?
- get only one last comment from each post
- Applying same style to all the comments on the page
- Customise Comment form
- How to get recent comment link
- stumped on add_action hook to delete_comment – any ideas?
- Can I create a new comment type?
- Avoiding calls to theme-compat
- Allow tags between shortcode in comments
- How / where is the wp_query object created for RSS feeds?
- Separate page for comments using permalinks and add_rewrite_rule
- Delete/Spam Comment Button
- Who approved a comment, to show up in dashboard
- Cannot Remove Title Reply from Custom Comment Template for Signup Page
- comment just attachment .. reply just text … can I do that?
- How to make email field not required in comments?
- I have an odd field with a purple background, mentioning HTML-codes to use while leaving comments
- No comment Section but still got a Comment
- How to prevent users/authors from seing IP/email of new commentators?
- Why are my threaded comments not quite working? [closed]
- $post->comment_status always returns ‘closed’
- Order comments in admin by custom date
- WordPress Comments – Divide by conversation like Medium.com
- I want to limit registered user to 1 comment per post in WordPress
- How to replace anonymous comment form with a registration form on wordpress?
- What is wrong with this? [closed]
- Redirect first time comments
- Posting XML in comment section
- How to check if post has previous_comments_link() and next_comments_link()
- Comment text area in single blog post and show comments if approved
- comment files and s
- Comments – Ensure the correct field is highlighted for nested replies
- How to ‘If Author’ Comments Check
- selectively disable akismet
- How to hold all comments for moderation, including author’s comments on own post
- Comment Blacklist
- Subscribe to a post’s comments without posting a comment yourself
- WordPress error when sending comment
- WordPress Page Template: Comment Filtering with Querystring
- Modify “Recent Comments” List in WP-Admin
- Comment submission & navigation redirects to default language
- comments are going to spam
- Why default comment fields don’t show up?
- How to enable truly anonymous posting in bbPress forums? [closed]
- Add ACF Quick Edit Columns on Comments