Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 645 Bytes
<?php
/*
Plugin Name: Remove Comment IP
Plugin URI: https://github.com/ThomasLeister/remove-comment-ip
Description: More privacy for your visitors. Replaces comment IP addresses with 127.0.0.1
Author: Thomas Leister
Author URI: https://thomas-leister.de
Version: 1.1.0
*/
function remove_comment_ip()
{
return "127.0.0.1";
}
/*
* Filter needs priority > 10 because of "Antispam Bee", which adds another "pre_comment_user_ip" filter with prio 10.
* "Remove Comment IP" needs to override this filter, so a higher filter priority (50) is required.
*/
add_filter( 'pre_comment_user_ip', 'remove_comment_ip', 50);
?>