Skip to content

Instantly share code, notes, and snippets.

@SimonMayerhofer
Created May 5, 2018 08:49
Show Gist options
  • Save SimonMayerhofer/4530488ef12716dd7989543cf7d76980 to your computer and use it in GitHub Desktop.
Save SimonMayerhofer/4530488ef12716dd7989543cf7d76980 to your computer and use it in GitHub Desktop.
Disable saving of the IP address in WordPress comments
function my_remove_commentsip( $comment_author_ip ) {
return '';
}
add_filter( 'pre_comment_user_ip', 'my_remove_commentsip' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment