Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.