Title: Add anonymous comment option
Last modified: August 22, 2016

---

# Add anonymous comment option

 *  [p.dirac](https://wordpress.org/support/users/pdirac/)
 * (@pdirac)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/add-anonymous-comment-option/)
 * Our wordpress application requires users to log in to post comments. We also 
   allow anonymous comments. We have to modify the wordpress code on every upgrade
   to make this work. It would be nice if there was an option to allow anonymous
   comments.
 * Our customized comment box has a checkbox for ‘comment anonymously’, and the 
   text area for making a comment. The database table that stores comments has an
   extra column to indicate anonymous.
 * For anonymous comments, we don’t display the user avatar, name, or email anywhere
   the comment is displayed, including on the admin page.
    The ‘Author’ field is
   just ‘Anonymous’.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 6 months ago](https://wordpress.org/support/topic/add-anonymous-comment-option/#post-5453476)
 * > Our wordpress application requires users to log in to post comments.
 * Why not just let anyone comment? Logged in users can still comment too.
 * > We have to modify the wordpress code on every upgrade to make this work.
 * That’s _really_ not a good idea and probably not necessary. What modification
   are you making?
 *  Thread Starter [p.dirac](https://wordpress.org/support/users/pdirac/)
 * (@pdirac)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/add-anonymous-comment-option/#post-5453484)
 * Our customer makes the requirement: Users must log in to post comments.
 * Files modified to allow anonymous comments:
    wp-comments-post.php wp-admin\includes\
   class-wp-comments-list-table.php wp-includes\comment.php comments-popup.php (
   our custom comment box) functions.php (in our theme)
 * Is there another way to not display the user’s avatar, name, and email everywhere
   an anonymous comment is listed?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add anonymous comment option’ is closed to new replies.

## Tags

 * [anonymous](https://wordpress.org/support/topic-tag/anonymous/)
 * [comment](https://wordpress.org/support/topic-tag/comment/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 2 replies
 * 2 participants
 * Last reply from: [p.dirac](https://wordpress.org/support/users/pdirac/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/add-anonymous-comment-option/#post-5453484)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
