Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress: Disable IP collection through WordPress comments
* Remove IP collection in WordPress comments
* Source:
function wpb_remove_commentsip( $comment_author_ip ) {
return '';
add_filter( 'pre_comment_user_ip', 'wpb_remove_commentsip' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment