Skip to content

Instantly share code, notes, and snippets.

Created August 6, 2012 17:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
T5 No Comment IP
<?php # -*- coding: utf-8 -*-
* Plugin Name: T5 No Comment IP
* Description: Sets all saved comment IPs to 0 (zero)
* Plugin URI:
* Version: 2012.08.06
* Author: Thomas Scholz
* Author URI:
* License: MIT
* License URI:
add_filter( 'pre_comment_user_ip', '__return_zero' );
Copy link

ghost commented Nov 2, 2014

Seems that this doesn´t work in WordPress 4.0. Checked it in two different installations (one of them fresh, without any other plugins) and the IP is stored and visible in the backend. Can you reproduce this behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment