T5 No Comment IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?