Last active
May 25, 2018 07:27
-
-
Save bueltge/d0126eee91c0c17e80ad57e34e339a11 to your computer and use it in GitHub Desktop.
Stop Save IP Address on WordPress Comment
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 -*- | |
declare( strict_types = 1 ); | |
/** | |
* Plugin Name: Stop Save IP Adress on Comment | |
* Plugin URI: https://gist.github.com/bueltge/d0126eee91c0c17e80ad57e34e339a11 | |
* Description: Stop Storing IP Addresses with WordPress Comments. | |
* Version: 2018-05-25 | |
* Author: Frank Bültge | |
* Author URI: https://bueltge.de | |
* License: MIT | |
* License URI: https://opensource.org/licenses/MIT | |
*/ | |
namespace Bueltge\StopIpSaving; | |
defined( 'ABSPATH' ) || die(); | |
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