Forums
Home / Fixing WordPress / Ip adres in admin/dashboard
(@randyvos)
5 years, 3 months ago
When editors of my website entering the WordPress dashboard, they see the ip adress of visitors who legt comments. Hoe van I change this?
(@bartosznowak)
Hi, have you tried adding this function to functions.php ?
function remove_comments_ip( $ip ) { return ”; } add_filter( ‘pre_comment_user_ip’, ‘remove_comments_ip’ );
This will return blank field instead of IP in every NEW comment.
Thanks for your reply. Problem is that Admins can’t see them anymore. Only the admin should see the ip, normal editors not.