Skip to content

Instantly share code, notes, and snippets.

Embed
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: http://toscho.de/?p=1916
* Version: 2012.08.06
* Author: Thomas Scholz
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
*/
add_filter( 'pre_comment_user_ip', '__return_zero' );
@ghost

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.