Support » Plugins » Hacks » Hide comment email from non-admins

  • I have a question about comment notification

    When someone posts a comment there are sent 2 emails – one to me as Admin and one to the author.

    However, the email sent to authors contains the email address of the person making the comment.
    Since most of our authors are 3rd party people I can’t have email addresses shown to them – seems like a huge breach of privacy.

    How can I hide email addresses from people making a comment from all emails sent?

    Authors can also see the email in wp-admin, when editing their own posts. Can I remove it from there as well?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p


    Since most of our authors are 3rd party people I can’t have email addresses shown to them

    No, WordPress does not have this ability to hide emails. If authors have access to edit posts, then they also have access to edit comments as well. There is no separate capability for this.

    There is this plugin:

    But, it has not been updated recently.

    Perhaps you can get some idea from its source code.

    Moderator bcworkz


    loenne, you are right, there is a serious privacy issue depending on who a site’s authors are. Altering the email message is simple enough, but Tara is right, there is no mechanism to hide just the email fields on admin screens. You could alter the capabilities so authors cannot access comment related admin screens at all. You could even add in custom admin screens that do not display email data. You are to some extent rewriting the admin interface in doing this.

    Another possibility would be to store a phony email on the comments table, then store the real email on commentmeta. While it’s difficult to control visibility of default fields, control is much easier for custom fields and columns. The fields and columns showing the true email can only be shown to true admin users, while authors can only see the phony email.

    This sounds like an interesting problem. Are you still looking for a solution to this? I might be able to build something for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide comment email from non-admins’ is closed to new replies.