Created
April 28, 2018 09:51
-
-
Save glueckpress/74710e5954f12f4da164f810b7976529 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Plugin Name: Comment without IP | |
* Plugin URI: https://gist.github.com/glueckpress/74710e5954f12f4da164f810b7976529 | |
* Description: Removes a commenter’s IP address from new comments. | |
* Version: 0.0.1 | |
* Author: Caspar Hübinger | |
* Author URI: https://profiles.wordpress.org/glueckpress | |
* License: GNU General Public License v3 | |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
*/ | |
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