Problem hiding IP/Email from users in Multisite
-
I have built a community using Multisite/Buddypress, but recently we had an issue where a blog owner used the Email Address of a commenter to stalk and harass them. I am trying to block Site Admins from being able to see this information in their dashboard and notification emails.
This is the code I cobbled together to block Email/IP from the Comments Menu:
// Testing IP/EMail block functions if( !current_user_can('manage_network') ){ function my_filter_IP(){ return ""; } add_filter('get_comment_author_IP', 'my_filter_IP'); add_filter('comment_email', 'my_filter_IP'); }
I tested this out on a SingleSite installation and it worked fine, but when I moved it into a plugin on my MultiSite install, the site went dead. I had to FTP in and remove the code for the site to function again.
Any ideas on how I can make this happen for MultiSite?
Also I’ve been unable to find a way to filter the Email addresses in the “Users” menu, or to stop the comment notification emails from giving this information out. Any help would be greatly appreciated.
- The topic ‘Problem hiding IP/Email from users in Multisite’ is closed to new replies.