Skip to content

Instantly share code, notes, and snippets.

@bueltge
Last active May 25, 2018 07:27
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 bueltge/d0126eee91c0c17e80ad57e34e339a11 to your computer and use it in GitHub Desktop.
Save bueltge/d0126eee91c0c17e80ad57e34e339a11 to your computer and use it in GitHub Desktop.
Stop Save IP Address on WordPress Comment
<?php # -*- coding: utf-8 -*-
declare( strict_types = 1 );
/**
* Plugin Name: Stop Save IP Adress on Comment
* Plugin URI: https://gist.github.com/bueltge/d0126eee91c0c17e80ad57e34e339a11
* Description: Stop Storing IP Addresses with WordPress Comments.
* Version: 2018-05-25
* Author: Frank Bültge
* Author URI: https://bueltge.de
* License: MIT
* License URI: https://opensource.org/licenses/MIT
*/
namespace Bueltge\StopIpSaving;
defined( 'ABSPATH' ) || die();
add_filter( 'pre_comment_user_ip', '__return_empty_string' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment