Created
March 22, 2021 01:37
-
-
Save danielmcclure/f8b6f3e79204f16a77857eefb0e974ac to your computer and use it in GitHub Desktop.
Stop Recording IP Address with WordPress Comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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