Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Plugin Name: Comment without IP
* Plugin URI:
* Description: Removes a commenter’s IP address from new comments.
* Version: 0.0.1
* Author: Caspar Hübinger
* Author URI:
* License: GNU General Public License v3
* License URI:
defined( 'ABSPATH' ) && function_exists( 'add_filter' ) or exit;
add_filter( 'pre_comment_user_ip', '__return_empty_string' );
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.