Skip to content

Instantly share code, notes, and snippets.

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:
* Description: Stop Storing IP Addresses with WordPress Comments.
* Version: 2018-05-25
* Author: Frank Bültge
* Author URI:
* License: MIT
* License URI:
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.