Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Created March 22, 2021 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmcclure/f8b6f3e79204f16a77857eefb0e974ac to your computer and use it in GitHub Desktop.
Save danielmcclure/f8b6f3e79204f16a77857eefb0e974ac to your computer and use it in GitHub Desktop.
Stop Recording IP Address with WordPress Comments
<?php
// Stop Recording IP Address with WordPress Comments
function dm_remove_comments_ip( $comment_author_ip ) {
return '';
}
add_filter( 'pre_comment_user_ip', 'dm_remove_comments_ip' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment