Created
July 29, 2013 19:41
-
-
Save fatihtoprak/6107136 to your computer and use it in GitHub Desktop.
No ip for wordpress comment Author in Admin area
This file contains hidden or 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 | |
| function hide_ip($ip) { | |
| return ( strstr($_SERVER['PHP_SELF'], 'wp-admin/') ) ? 'hidden' : $ip; | |
| } | |
| add_filter('get_comment_author_IP', 'hide_ip'); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment