Skip to content

Instantly share code, notes, and snippets.

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' );

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.